PageRenderTime 46ms CodeModel.GetById 16ms RepoModel.GetById 1ms app.codeStats 0ms

/docs/c/io/start.html

https://github.com/whitypig/emacs-cppref
HTML | 212 lines | 180 code | 26 blank | 6 comment | 0 complexity | 1ba3e028672cf60c000424107c530ade MD5 | raw file
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
  2. "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  3. <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"
  4. lang="en" dir="ltr">
  5. <head>
  6. <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  7. <title>
  8. Standard C I/O [C++ Reference]
  9. </title>
  10. <meta name="generator" content="DokuWiki Release 2009-02-14b" />
  11. <meta name="robots" content="index,follow" />
  12. <meta name="date" content="2009-02-17T07:33:30-0800" />
  13. <meta name="keywords" content="c,io,start" />
  14. <link rel="search" type="application/opensearchdescription+xml" href="/wiki/lib/exe/opensearch.php" title="C++ Reference" />
  15. <link rel="start" href="/wiki/" />
  16. <link rel="contents" href="/wiki/c/io/start?do=index" title="Index" />
  17. <link rel="alternate" type="application/rss+xml" title="Recent Changes" href="/wiki/feed.php" />
  18. <link rel="alternate" type="application/rss+xml" title="Current Namespace" href="/wiki/feed.php?mode=list&amp;ns=c:io" />
  19. <link rel="alternate" type="application/wiki" title="Edit this page" href="/wiki/c/io/start?do=edit" />
  20. <link rel="alternate" type="text/html" title="Plain HTML" href="/wiki/_export/xhtml/c/io/start" />
  21. <link rel="alternate" type="text/plain" title="Wiki Markup" href="/wiki/_export/raw/c/io/start" />
  22. <link rel="stylesheet" media="all" type="text/css" href="/wiki/lib/exe/css.php?s=all&amp;t=custom1" />
  23. <link rel="stylesheet" media="screen" type="text/css" href="/wiki/lib/exe/css.php?t=custom1" />
  24. <link rel="stylesheet" media="print" type="text/css" href="/wiki/lib/exe/css.php?s=print&amp;t=custom1" />
  25. <script type="text/javascript" charset="utf-8" src="/wiki/lib/exe/js.php?edit=0&amp;write=1" ></script>
  26. <link rel="shortcut icon" href="/wiki/lib/tpl/custom1/images/favicon.png" />
  27. </head>
  28. <body>
  29. <div class="dokuwiki">
  30. <div class="stylehead">
  31. <div class="breadcrumbs">
  32. <span class="bchead">You are here: </span><a href="../../start.html" title="start">C++ Reference</a> &raquo; <a href="../../c/start.html" title="c:start">The Standard C Library</a> &raquo; <a href="../../c/io/start.html" title="c:io:start">Standard C I/O</a> </div>
  33. </div>
  34. <div class="page">
  35. <script src="http://www.google-analytics.com/urchin.js" type="text/javascript">
  36. </script>
  37. <script type="text/javascript">
  38. _uacct = "UA-2828341-1";
  39. urchinTracker();
  40. </script>
  41. <!-- wikipage start -->
  42. <h1><a name="standard_c_io" id="standard_c_io">Standard C I/O</a></h1>
  43. <div class="level1">
  44. <p>
  45. These functions provide an alternative to the <a href="../../io/start.html" class="wikilink1" title="io:start">C++ stream-based IO classes</a>.
  46. </p>
  47. <table class="inline">
  48. <tr class="row0">
  49. <td class="col0"><a href="../../c/io/clearerr.html" class="wikilink1" title="c:io:clearerr">clearerr</a></td><td class="col1">clears errors</td>
  50. </tr>
  51. <tr class="row1">
  52. <td class="col0"><a href="../../c/io/fclose.html" class="wikilink1" title="c:io:fclose">fclose</a></td><td class="col1">close a file</td>
  53. </tr>
  54. <tr class="row2">
  55. <td class="col0"><a href="../../c/io/feof.html" class="wikilink1" title="c:io:feof">feof</a></td><td class="col1">true if at the end-of-file</td>
  56. </tr>
  57. <tr class="row3">
  58. <td class="col0"><a href="../../c/io/ferror.html" class="wikilink1" title="c:io:ferror">ferror</a></td><td class="col1">checks for a file error</td>
  59. </tr>
  60. <tr class="row4">
  61. <td class="col0"><a href="../../c/io/fflush.html" class="wikilink1" title="c:io:fflush">fflush</a></td><td class="col1">writes the contents of the output buffer</td>
  62. </tr>
  63. <tr class="row5">
  64. <td class="col0"><a href="../../c/io/fgetc.html" class="wikilink1" title="c:io:fgetc">fgetc</a></td><td class="col1">get a character from a stream</td>
  65. </tr>
  66. <tr class="row6">
  67. <td class="col0"><a href="../../c/io/fgetpos.html" class="wikilink1" title="c:io:fgetpos">fgetpos</a></td><td class="col1">get the file position indicator</td>
  68. </tr>
  69. <tr class="row7">
  70. <td class="col0"><a href="../../c/io/fgets.html" class="wikilink1" title="c:io:fgets">fgets</a></td><td class="col1">get a string of characters from a stream</td>
  71. </tr>
  72. <tr class="row8">
  73. <td class="col0"><a href="../../c/io/fopen.html" class="wikilink1" title="c:io:fopen">fopen</a></td><td class="col1">open a file</td>
  74. </tr>
  75. <tr class="row9">
  76. <td class="col0"><a href="../../c/io/fprintf.html" class="wikilink1" title="c:io:fprintf">fprintf</a></td><td class="col1">print formatted output to a file</td>
  77. </tr>
  78. <tr class="row10">
  79. <td class="col0"><a href="../../c/io/fputc.html" class="wikilink1" title="c:io:fputc">fputc</a></td><td class="col1">write a character to a file</td>
  80. </tr>
  81. <tr class="row11">
  82. <td class="col0"><a href="../../c/io/fputs.html" class="wikilink1" title="c:io:fputs">fputs</a></td><td class="col1">write a string to a file</td>
  83. </tr>
  84. <tr class="row12">
  85. <td class="col0"><a href="../../c/io/fread.html" class="wikilink1" title="c:io:fread">fread</a></td><td class="col1">read from a file</td>
  86. </tr>
  87. <tr class="row13">
  88. <td class="col0"><a href="../../c/io/freopen.html" class="wikilink1" title="c:io:freopen">freopen</a></td><td class="col1">open an existing stream with a different name</td>
  89. </tr>
  90. <tr class="row14">
  91. <td class="col0"><a href="../../c/io/fscanf.html" class="wikilink1" title="c:io:fscanf">fscanf</a></td><td class="col1">read formatted input from a file</td>
  92. </tr>
  93. <tr class="row15">
  94. <td class="col0"><a href="../../c/io/fseek.html" class="wikilink1" title="c:io:fseek">fseek</a></td><td class="col1">move to a specific location in a file</td>
  95. </tr>
  96. <tr class="row16">
  97. <td class="col0"><a href="../../c/io/fsetpos.html" class="wikilink1" title="c:io:fsetpos">fsetpos</a></td><td class="col1">move to a specific location in a file</td>
  98. </tr>
  99. <tr class="row17">
  100. <td class="col0"><a href="../../c/io/ftell.html" class="wikilink1" title="c:io:ftell">ftell</a></td><td class="col1">returns the current file position indicator</td>
  101. </tr>
  102. <tr class="row18">
  103. <td class="col0"><a href="../../c/io/fwrite.html" class="wikilink1" title="c:io:fwrite">fwrite</a></td><td class="col1">write to a file</td>
  104. </tr>
  105. <tr class="row19">
  106. <td class="col0"><a href="../../c/io/getc.html" class="wikilink1" title="c:io:getc">getc</a></td><td class="col1">read a character from a file</td>
  107. </tr>
  108. <tr class="row20">
  109. <td class="col0"><a href="../../c/io/getchar.html" class="wikilink1" title="c:io:getchar">getchar</a></td><td class="col1">read a character from stdin</td>
  110. </tr>
  111. <tr class="row21">
  112. <td class="col0"><a href="../../c/io/gets.html" class="wikilink1" title="c:io:gets">gets</a></td><td class="col1">read a string from stdin</td>
  113. </tr>
  114. <tr class="row22">
  115. <td class="col0"><a href="../../c/io/perror.html" class="wikilink1" title="c:io:perror">perror</a></td><td class="col1">displays a string version of the current error to stderr</td>
  116. </tr>
  117. <tr class="row23">
  118. <td class="col0"><a href="../../c/io/printf.html" class="wikilink1" title="c:io:printf">printf</a></td><td class="col1">write formatted output to stdout</td>
  119. </tr>
  120. <tr class="row24">
  121. <td class="col0"><a href="../../c/io/putc.html" class="wikilink1" title="c:io:putc">putc</a></td><td class="col1">write a character to a stream</td>
  122. </tr>
  123. <tr class="row25">
  124. <td class="col0"><a href="../../c/io/putchar.html" class="wikilink1" title="c:io:putchar">putchar</a></td><td class="col1">write a character to stdout</td>
  125. </tr>
  126. <tr class="row26">
  127. <td class="col0"><a href="../../c/io/puts.html" class="wikilink1" title="c:io:puts">puts</a></td><td class="col1">write a string to stdout</td>
  128. </tr>
  129. <tr class="row27">
  130. <td class="col0"><a href="../../c/io/remove.html" class="wikilink1" title="c:io:remove">remove</a></td><td class="col1">erase a file</td>
  131. </tr>
  132. <tr class="row28">
  133. <td class="col0"><a href="../../c/io/rename.html" class="wikilink1" title="c:io:rename">rename</a></td><td class="col1">rename a file</td>
  134. </tr>
  135. <tr class="row29">
  136. <td class="col0"><a href="../../c/io/rewind.html" class="wikilink1" title="c:io:rewind">rewind</a></td><td class="col1">move the file position indicator to the beginning of a file</td>
  137. </tr>
  138. <tr class="row30">
  139. <td class="col0"><a href="../../c/io/scanf.html" class="wikilink1" title="c:io:scanf">scanf</a></td><td class="col1">read formatted input from stdin</td>
  140. </tr>
  141. <tr class="row31">
  142. <td class="col0"><a href="../../c/io/setbuf.html" class="wikilink1" title="c:io:setbuf">setbuf</a></td><td class="col1">set the buffer for a specific stream</td>
  143. </tr>
  144. <tr class="row32">
  145. <td class="col0"><a href="../../c/io/setvbuf.html" class="wikilink1" title="c:io:setvbuf">setvbuf</a></td><td class="col1">set the buffer and size for a specific stream</td>
  146. </tr>
  147. <tr class="row33">
  148. <td class="col0"><a href="../../c/io/snprintf.html" class="wikilink1" title="c:io:snprintf">snprintf</a></td><td class="col1">write formated output to a buffer (with bound checking)</td>
  149. </tr>
  150. <tr class="row34">
  151. <td class="col0"><a href="../../c/io/sprintf.html" class="wikilink1" title="c:io:sprintf">sprintf</a></td><td class="col1">write formatted output to a buffer</td>
  152. </tr>
  153. <tr class="row35">
  154. <td class="col0"><a href="../../c/io/sscanf.html" class="wikilink1" title="c:io:sscanf">sscanf</a></td><td class="col1">read formatted input from a buffer</td>
  155. </tr>
  156. <tr class="row36">
  157. <td class="col0"><a href="../../c/io/tmpfile.html" class="wikilink1" title="c:io:tmpfile">tmpfile</a></td><td class="col1">return a pointer to a temporary file</td>
  158. </tr>
  159. <tr class="row37">
  160. <td class="col0"><a href="../../c/io/tmpnam.html" class="wikilink1" title="c:io:tmpnam">tmpnam</a></td><td class="col1">return a unique filename</td>
  161. </tr>
  162. <tr class="row38">
  163. <td class="col0"><a href="../../c/io/ungetc.html" class="wikilink1" title="c:io:ungetc">ungetc</a></td><td class="col1">puts a character back into a stream</td>
  164. </tr>
  165. <tr class="row39">
  166. <td class="col0"><a href="../../c/io/vprintf_vfprintf_vsprintf.html" class="wikilink1" title="c:io:vprintf_vfprintf_vsprintf">vprintf, vfprintf, and vsprintf</a></td><td class="col1">write formatted output with variable argument lists</td>
  167. </tr>
  168. <tr class="row40">
  169. <td class="col0"><a href="../../c/io/vscanf_vfscanf_vsscanf.html" class="wikilink1" title="c:io:vscanf_vfscanf_vsscanf">vscanf, vfscanf, and vsscanf</a></td><td class="col1">gets formatted input from stdin with variable argument lists</td>
  170. </tr>
  171. </table>
  172. </div>
  173. <!-- wikipage stop -->
  174. </div>
  175. <div class="clearer">&nbsp;</div>
  176. <div class="stylefoot">
  177. <div class="meta">
  178. <div class="user">
  179. </div>
  180. <!--
  181. <div class="doc">
  182. c/io/start.txt &middot; Last modified: 02/17/2009 07:33 by 66.90.155.196 </div>
  183. -->
  184. </div>
  185. </div></div></body>
  186. </html>