2464:
1129:
1959:
273:
This library uses what are called streams to operate with physical devices such as keyboards, printers, terminals or with any other type of files supported by the system. Streams are an abstraction to interact with these in a uniform way. All streams have similar properties independent of the
256:
The stream model of file I/O was popularized by Unix, which was developed concurrently with the C programming language itself. The vast majority of modern operating systems have inherited streams from Unix, and many languages in the
1278:โ a non-array type capable of uniquely identifying the position of every byte in a file and every conversion state that can occur in all supported multibyte character encodings
1724:
into a stream to customize the handling of data read from or written to the stream. It was released to the outside world in 1997, and the last release was 1 February 2005.
1897:
1991:
173:
258:
1875:
1984:
1963:
245:, which may be "input streams" or "output streams". Unlike some earlier programming languages, C has no direct support for
1716:. This library, introduced in 1991, aimed to avoid inconsistencies, unsafe practices and inefficiencies in the design of
2304:
237:
The I/O functionality of C is fairly low-level by modern standards; C abstracts all file operations into operations on
1233:
containing the information about a file or text stream needed to perform input or output operations on it, including:
2468:
1781:
548:
Reads a byte string from stdin until a newline or end of file is encountered (deprecated in C99, removed from C11)
166:
2285:
2194:
1977:
1911:
2403:
1167:
2423:
2375:
1181:
1153:
2490:
2433:
2418:
2124:
159:
85:
1853:
2380:
2109:
55:
2428:
2134:
2031:
2026:
2021:
1859:
1713:
1267:
75:
2408:
2119:
2067:
2000:
1924:
187:
80:
65:
2271:
2246:
249:
data files; to read from a record in the middle of a file, the programmer must create a stream,
2289:
2231:
1919:
997:
An abbreviation for "input/output fully buffered"; it is an integer which may be passed to the
1013:
An abbreviation for "input/output line buffered"; it is an integer which may be passed to the
2495:
1684:
1029:
An abbreviation for "input/output not buffered"; it is an integer which may be passed to the
17:
2251:
1733:
1695:
332:
Opens a file (with a non-Unicode filename on
Windows and possible UTF-8 filename on Linux)
100:
8:
2266:
2261:
2223:
1738:
1263:
the current stream position and multibyte conversion state (an object of type mbstate_t)
2332:
2097:
2062:
1217:
894:
238:
205:
35:
2165:
2160:
2129:
2072:
1891:
1721:
95:
90:
60:
1786:
1285:
191:
1810:
A Research Unix reader: annotated excerpts from the
Programmer's Manual, 1971โ1986
2276:
2236:
2144:
1772:
1328:
1237:
2449:
2294:
2256:
2182:
2082:
1863:
1808:
1230:
1065:
constant; that is, a constant representing a pointer value which is guaranteed
749:
745:
736:
231:
844:
741:
732:
728:
708:
704:
695:
667:
663:
558:
524:
2484:
2352:
2342:
2281:
1827:
1790:
981:
array which is large enough to store the name of any file that can be opened
902:
819:
809:
724:
700:
691:
687:
659:
654:
650:
630:
626:
590:
553:
519:
377:
337:
246:
198:
1248:
stream buffering state indicator (unbuffered, line buffered, fully buffered)
989:
The number of files that may be open simultaneously; will be at least eight
912:
889:
879:
864:
829:
765:
683:
646:
622:
617:
613:
585:
505:
482:
459:
436:
412:
367:
357:
347:
261:
have inherited C's file I/O interface with few if any changes (for example,
253:
to the middle of the file, and then read bytes in sequence from the stream.
2322:
2087:
1804:
1712:
Other alternatives include the Sfio (A Safe/Fast I/O Library) library from
1062:
1049:
array which is large enough to store a temporary filename generated by the
797:
785:
609:
500:
486:
473:
454:
440:
427:
402:
392:
Switches a file stream between wide-character I/O and narrow-character I/O
387:
327:
274:
individual characteristics of the physical media they are associated with.
201:
50:
854:
572:
539:
477:
431:
2413:
1969:
946:
208:
1176:
which refers to the standard output stream, usually a display terminal.
2057:
2036:
194:
1105:
function to request positioning relative to the beginning of the file
1081:
function to request positioning relative to the current file position
218:. The functionality descends from a "portable I/O package" written by
1702:
1236:
platform-specific identifier of the associated I/O device, such as a
1210:
1190:
which refers to the standard error stream, often a display terminal.
1128:
298:
223:
219:
960:
2357:
2347:
2327:
2172:
2139:
2077:
1776:
824:
Moves the file position indicator to a specific location in a file
804:
Moves the file position indicator to a specific location in a file
145:
136:
118:
1251:
I/O mode indicator (input stream, output stream, or update stream)
2041:
774:
127:
1093:
function to request positioning relative to the end of the file
2312:
2209:
2204:
2011:
1958:
1290:
1162:
which refers to the standard input stream, usually a keyboard.
2398:
2337:
2317:
2241:
2189:
2177:
1304:
834:
Moves the file position indicator to the beginning in a file
287:
250:
2199:
242:
227:
2016:
1939:
Fowler, Glenn S.; Korn, David G.; Vo, Kiem-Phong (2000).
294:, which contains the standard C functionality but in the
282:
Most of the C file input/output functions are defined in
262:
1113:
The maximum number of unique filenames generable by the
760:
a file stream, or a buffer using variable argument list
27:
Input/output functionality in the C programming language
965:
An integer which is the size of the buffer used by the
678:
a file stream or a buffer using variable argument list
1347:, reads five bytes from it, and then closes the file.
226:
in the early 1970s, and officially became part of the
1683:"Sfio" redirects here. For other uses of "SFIO", see
1245:
stream orientation indicator (unset, narrow, or wide)
1343:The following C program opens a binary file called
352:Synchronizes an output stream with the actual file
1720:. Among its features is the possibility to insert
2482:
1896:: CS1 maint: bot: original URL status unknown (
1878:. Archived from the original on 11 February 2006
1532:"An error occurred while reading the file.
382:Sets the buffer and its size for a file stream
342:Opens a different file with an existing stream
1985:
1771:
1069:to be a valid address of an object in memory
167:
1938:
1288:type which is the type of the result of the
1127:
792:Returns the current file position indicator
1311:in its Base Definitions, among which are a
1999:
1992:
1978:
1323:functions that establish the link between
204:. These functions make up the bulk of the
174:
160:
1923:
1858: โ Base Definitions Reference,
1816:(Technical report). CSTR. Bell Labs. 139.
1335:objects that refer to in-memory buffers.
1694:have been developed. Among these is the
1678:
1331:, and a group of functions for creating
955:used to indicate end-of-file conditions
1803:
1307:standard defines several extensions to
14:
2483:
1910:
1101:An integer which may be passed to the
1089:An integer which may be passed to the
1077:An integer which may be passed to the
907:Returns a pointer to a temporary file
1973:
1797:
1315:function that allocates memory, the
1037:input and output for an open stream
1021:input and output for an open stream
1005:input and output for an open stream
24:
372:Sets the buffer for a file stream
25:
2507:
1951:
1580:"The bytes read were: "
814:Gets the file position indicator
2463:
2462:
1957:
1782:The UNIX Programming Environment
769:
576:
544:
1876:"Sfio: A Safe/Fast I/O Library"
1759:ISO/IEC 9899:1999 specification
1266:reentrant lock (required as of
1196:
580:Writes a byte string to stdout
1932:
1916:SFIO: Safe/Fast String/File IO
1904:
1868:
1845:
1820:
1765:
1751:
1117:function; will be at least 25
13:
1:
1941:Extended Formatting with Sfio
1860:The Single UNIX Specification
1744:
1705:. ISO C++ still requires the
1298:
259:C programming language family
1918:. Proc. Summer USENIX Conf.
1123:
923:
773:Writes a description of the
277:
7:
1943:. Proc. Summer USENIX Conf.
1828:"(stdio.h) - C++ Reference"
1727:
951:A negative integer of type
859:Checks for the end-of-file
672:Reads formatted input byte/
268:
10:
2512:
2376:Compatibility of C and C++
1714:AT&T Bell Laboratories
1682:
1448:"Failed to open file
1338:
1254:binary/text mode indicator
1201:Data types defined in the
917:Returns a unique filename
719:a file stream or a buffer
641:a file stream or a buffer
2458:
2442:
2389:
2366:
2303:
2222:
2153:
2105:
2096:
2050:
2007:
1914:; Vo, Kiem-Phong (1991).
1135:Variables defined in the
1061:A macro expanding to the
928:Constants defined in the
911:
901:
888:
878:
873:
863:
853:
843:
838:
828:
818:
808:
796:
784:
781:
603:
421:
411:
401:
396:
386:
376:
366:
356:
346:
336:
326:
323:
1690:Several alternatives to
1349:
869:Checks for a file error
599:back into a file stream
514:string to a file stream
468:line from a file stream
56:Character classification
2381:Comparison with Pascal
2001:C programming language
1132:
754:Prints formatted byte/
713:Prints formatted byte/
188:C programming language
1701:library, part of the
1685:SFIO (disambiguation)
1679:Alternatives to stdio
1257:end-of-file indicator
1131:
635:Reads formatted byte/
109:Miscellaneous headers
1966:at Wikimedia Commons
1734:printf format string
1033:function to request
1017:function to request
1001:function to request
230:operating system in
1964:C file input/output
1739:scanf format string
449:from a file stream
2491:C standard library
1722:callback functions
1409:"myfile"
1214:โ also known as a
1133:
407:Reads from a file
206:C standard library
101:Alternative tokens
36:C standard library
2478:
2477:
2218:
2217:
1962:Media related to
1862:, Version 4 from
1761:. p. 274, ยง 7.19.
1637:"%02X "
1194:
1193:
1121:
1120:
921:
920:
782:File positioning
758:output to stdout,
717:output to stdout,
639:input from stdin,
495:to a file stream
417:Writes to a file
184:
183:
86:Memory allocation
71:File input/output
16:(Redirected from
2503:
2466:
2465:
2103:
2102:
2098:Standard library
1994:
1987:
1980:
1971:
1970:
1961:
1945:
1944:
1936:
1930:
1929:
1927:
1908:
1902:
1901:
1895:
1887:
1885:
1883:
1872:
1866:
1857:
1856:
1849:
1843:
1842:
1840:
1838:
1824:
1818:
1817:
1815:
1801:
1795:
1794:
1787:Englewood Cliffs
1773:Kernighan, Brian
1769:
1763:
1762:
1755:
1719:
1708:
1703:ISO C++ standard
1699:
1693:
1674:
1671:
1668:
1665:
1662:
1659:
1656:
1653:
1650:
1647:
1644:
1641:
1638:
1635:
1632:
1629:
1626:
1623:
1620:
1617:
1614:
1611:
1608:
1605:
1602:
1599:
1596:
1593:
1590:
1587:
1584:
1581:
1578:
1575:
1572:
1569:
1566:
1563:
1560:
1557:
1554:
1551:
1548:
1545:
1542:
1539:
1536:
1533:
1530:
1527:
1524:
1521:
1518:
1515:
1512:
1509:
1506:
1503:
1500:
1497:
1494:
1491:
1488:
1485:
1482:
1479:
1476:
1473:
1470:
1467:
1464:
1461:
1458:
1455:
1452:
1449:
1446:
1443:
1440:
1437:
1434:
1431:
1428:
1425:
1422:
1419:
1416:
1413:
1410:
1407:
1404:
1401:
1398:
1395:
1392:
1389:
1386:
1383:
1380:
1377:
1374:
1371:
1368:
1365:
1362:
1361:<stdlib.h>
1359:
1356:
1353:
1334:
1329:file descriptors
1326:
1322:
1318:
1314:
1310:
1293:
1286:unsigned integer
1283:
1277:
1227:
1226:
1213:
1205:header include:
1204:
1189:
1175:
1161:
1142:
1141:
1139:header include:
1138:
1116:
1104:
1092:
1080:
1052:
1048:
1032:
1016:
1000:
980:
968:
954:
935:
934:
932:header include:
931:
757:
716:
675:
638:
598:
566:
532:
513:
494:
467:
448:
304:
303:
297:
293:
285:
217:
202:input and output
192:standard library
176:
169:
162:
149:
140:
131:
122:
32:
31:
21:
2511:
2510:
2506:
2505:
2504:
2502:
2501:
2500:
2481:
2480:
2479:
2474:
2454:
2438:
2391:
2385:
2369:other languages
2368:
2367:Comparison with
2362:
2299:
2237:Borland Turbo C
2214:
2154:Implementations
2149:
2092:
2046:
2003:
1998:
1954:
1949:
1948:
1937:
1933:
1909:
1905:
1889:
1888:
1881:
1879:
1874:
1873:
1869:
1852:
1851:
1850:
1846:
1836:
1834:
1826:
1825:
1821:
1813:
1802:
1798:
1770:
1766:
1757:
1756:
1752:
1747:
1730:
1717:
1709:functionality.
1706:
1697:
1691:
1688:
1681:
1676:
1675:
1672:
1669:
1666:
1663:
1660:
1657:
1654:
1651:
1648:
1645:
1642:
1639:
1636:
1633:
1630:
1627:
1624:
1621:
1618:
1615:
1612:
1609:
1606:
1603:
1600:
1597:
1594:
1591:
1588:
1585:
1582:
1579:
1576:
1573:
1570:
1567:
1564:
1561:
1558:
1555:
1552:
1549:
1546:
1543:
1540:
1537:
1534:
1531:
1528:
1525:
1522:
1519:
1516:
1513:
1510:
1507:
1504:
1501:
1498:
1495:
1492:
1489:
1486:
1483:
1480:
1477:
1474:
1471:
1468:
1465:
1462:
1459:
1456:
1453:
1450:
1447:
1444:
1441:
1438:
1435:
1432:
1429:
1426:
1423:
1420:
1417:
1414:
1411:
1408:
1405:
1402:
1399:
1396:
1393:
1390:
1387:
1384:
1381:
1378:
1375:
1372:
1369:
1366:
1363:
1360:
1357:
1355:<stdio.h>
1354:
1351:
1341:
1332:
1324:
1320:
1316:
1312:
1308:
1301:
1289:
1281:
1275:
1260:error indicator
1238:file descriptor
1224:
1223:
1209:
1203:<stdio.h>
1202:
1199:
1187:
1186:A pointer to a
1173:
1172:A pointer to a
1159:
1158:A pointer to a
1137:<stdio.h>
1136:
1126:
1114:
1102:
1090:
1078:
1050:
1046:
1030:
1014:
998:
978:
966:
952:
930:<stdio.h>
929:
926:
875:
840:
800:
788:
759:
755:
748:
744:
735:
731:
727:
718:
714:
707:
703:
694:
690:
686:
677:
673:
666:
662:
653:
649:
640:
636:
629:
625:
616:
612:
605:
596:
564:
530:
511:
492:
485:
476:
465:
446:
439:
430:
423:
398:
315:
310:
295:
291:
284:<stdio.h>
283:
280:
271:
211:
180:
143:
134:
125:
116:
91:Process control
28:
23:
22:
15:
12:
11:
5:
2509:
2499:
2498:
2493:
2476:
2475:
2473:
2472:
2459:
2456:
2455:
2453:
2452:
2450:Dennis Ritchie
2446:
2444:
2440:
2439:
2437:
2436:
2431:
2426:
2421:
2416:
2411:
2406:
2401:
2395:
2393:
2387:
2386:
2384:
2383:
2378:
2372:
2370:
2364:
2363:
2361:
2360:
2355:
2350:
2345:
2340:
2335:
2330:
2325:
2320:
2315:
2309:
2307:
2301:
2300:
2298:
2297:
2292:
2279:
2274:
2269:
2264:
2259:
2254:
2249:
2244:
2239:
2234:
2228:
2226:
2220:
2219:
2216:
2215:
2213:
2212:
2207:
2202:
2197:
2192:
2187:
2186:
2185:
2175:
2170:
2169:
2168:
2157:
2155:
2151:
2150:
2148:
2147:
2142:
2137:
2132:
2127:
2125:Dynamic memory
2122:
2117:
2112:
2106:
2100:
2094:
2093:
2091:
2090:
2085:
2080:
2075:
2070:
2065:
2060:
2054:
2052:
2048:
2047:
2045:
2044:
2039:
2034:
2029:
2024:
2019:
2014:
2008:
2005:
2004:
1997:
1996:
1989:
1982:
1974:
1968:
1967:
1953:
1952:External links
1950:
1947:
1946:
1931:
1925:10.1.1.51.6574
1912:Korn, David G.
1903:
1867:
1864:The Open Group
1844:
1819:
1805:McIlroy, M. D.
1796:
1793:. p. 200.
1764:
1749:
1748:
1746:
1743:
1742:
1741:
1736:
1729:
1726:
1680:
1677:
1415:"rb"
1350:
1340:
1337:
1300:
1297:
1296:
1295:
1279:
1273:
1272:
1271:
1264:
1261:
1258:
1255:
1252:
1249:
1246:
1243:
1240:
1231:opaque pointer
1198:
1195:
1192:
1191:
1184:
1178:
1177:
1170:
1164:
1163:
1156:
1150:
1149:
1146:
1125:
1122:
1119:
1118:
1111:
1107:
1106:
1099:
1095:
1094:
1087:
1083:
1082:
1075:
1071:
1070:
1059:
1055:
1054:
1045:The size of a
1043:
1039:
1038:
1027:
1023:
1022:
1011:
1007:
1006:
1003:block buffered
995:
991:
990:
987:
983:
982:
977:The size of a
975:
971:
970:
963:
957:
956:
949:
943:
942:
939:
925:
922:
919:
918:
915:
909:
908:
905:
899:
898:
892:
886:
885:
884:Erases a file
882:
877:
871:
870:
867:
861:
860:
857:
851:
850:
849:Clears errors
847:
842:
836:
835:
832:
826:
825:
822:
816:
815:
812:
806:
805:
802:
794:
793:
790:
783:
779:
778:
771:
768:
762:
761:
752:
739:
721:
720:
711:
698:
680:
679:
670:
657:
643:
642:
633:
620:
607:
601:
600:
593:
588:
582:
581:
578:
575:
569:
568:
563:Writes a byte/
561:
556:
550:
549:
546:
543:
535:
534:
527:
522:
516:
515:
510:Writes a byte/
508:
503:
497:
496:
491:Writes a byte/
489:
480:
470:
469:
462:
457:
451:
450:
443:
434:
425:
419:
418:
415:
409:
408:
405:
400:
394:
393:
390:
384:
383:
380:
374:
373:
370:
364:
363:
362:Closes a file
360:
354:
353:
350:
344:
343:
340:
334:
333:
330:
325:
321:
320:
317:
312:
307:
279:
276:
270:
267:
190:provides many
182:
181:
179:
178:
171:
164:
156:
153:
152:
151:
150:
141:
132:
123:
111:
110:
106:
105:
104:
103:
98:
93:
88:
83:
78:
73:
68:
63:
58:
53:
45:
44:
43:General topics
40:
39:
26:
9:
6:
4:
3:
2:
2508:
2497:
2494:
2492:
2489:
2488:
2486:
2471:
2470:
2461:
2460:
2457:
2451:
2448:
2447:
2445:
2441:
2435:
2432:
2430:
2427:
2425:
2422:
2420:
2417:
2415:
2412:
2410:
2407:
2405:
2402:
2400:
2397:
2396:
2394:
2388:
2382:
2379:
2377:
2374:
2373:
2371:
2365:
2359:
2356:
2354:
2353:Visual Studio
2351:
2349:
2346:
2344:
2343:GNOME Builder
2341:
2339:
2336:
2334:
2331:
2329:
2326:
2324:
2321:
2319:
2316:
2314:
2311:
2310:
2308:
2306:
2302:
2296:
2293:
2291:
2287:
2283:
2282:Visual Studio
2280:
2278:
2275:
2273:
2270:
2268:
2265:
2263:
2260:
2258:
2255:
2253:
2250:
2248:
2245:
2243:
2240:
2238:
2235:
2233:
2230:
2229:
2227:
2225:
2221:
2211:
2208:
2206:
2203:
2201:
2198:
2196:
2193:
2191:
2188:
2184:
2181:
2180:
2179:
2176:
2174:
2171:
2167:
2164:
2163:
2162:
2159:
2158:
2156:
2152:
2146:
2143:
2141:
2138:
2136:
2133:
2131:
2128:
2126:
2123:
2121:
2118:
2116:
2113:
2111:
2108:
2107:
2104:
2101:
2099:
2095:
2089:
2086:
2084:
2081:
2079:
2076:
2074:
2071:
2069:
2066:
2064:
2061:
2059:
2056:
2055:
2053:
2049:
2043:
2040:
2038:
2035:
2033:
2030:
2028:
2025:
2023:
2020:
2018:
2015:
2013:
2010:
2009:
2006:
2002:
1995:
1990:
1988:
1983:
1981:
1976:
1975:
1972:
1965:
1960:
1956:
1955:
1942:
1935:
1926:
1921:
1917:
1913:
1907:
1899:
1893:
1877:
1871:
1865:
1861:
1855:
1848:
1833:
1829:
1823:
1812:
1811:
1806:
1800:
1792:
1791:Prentice Hall
1788:
1784:
1783:
1778:
1774:
1768:
1760:
1754:
1750:
1740:
1737:
1735:
1732:
1731:
1725:
1723:
1715:
1710:
1704:
1700:
1686:
1348:
1346:
1336:
1330:
1306:
1292:
1287:
1280:
1274:
1269:
1265:
1262:
1259:
1256:
1253:
1250:
1247:
1244:
1241:
1239:
1235:
1234:
1232:
1229:, this is an
1228:
1220:
1219:
1212:
1208:
1207:
1206:
1185:
1183:
1180:
1179:
1171:
1169:
1166:
1165:
1157:
1155:
1152:
1151:
1147:
1144:
1143:
1140:
1130:
1112:
1109:
1108:
1100:
1097:
1096:
1088:
1085:
1084:
1076:
1073:
1072:
1068:
1064:
1060:
1057:
1056:
1044:
1041:
1040:
1036:
1028:
1025:
1024:
1020:
1019:line buffered
1012:
1009:
1008:
1004:
996:
993:
992:
988:
985:
984:
976:
974:FILENAME_MAX
973:
972:
964:
962:
959:
958:
950:
948:
945:
944:
940:
937:
936:
933:
916:
914:
910:
906:
904:
900:
896:
893:
891:
887:
883:
881:
872:
868:
866:
862:
858:
856:
852:
848:
846:
837:
833:
831:
827:
823:
821:
817:
813:
811:
807:
803:
799:
795:
791:
787:
780:
776:
775:current error
772:
767:
764:
763:
753:
751:
747:
743:
740:
738:
734:
730:
726:
723:
722:
712:
710:
706:
702:
699:
697:
693:
689:
685:
682:
681:
671:
669:
665:
661:
658:
656:
652:
648:
645:
644:
634:
632:
628:
624:
621:
619:
615:
611:
608:
606:input/output
602:
594:
592:
589:
587:
584:
583:
579:
574:
571:
570:
562:
560:
557:
555:
552:
551:
547:
542:
541:
537:
536:
529:Reads a byte/
528:
526:
523:
521:
518:
517:
509:
507:
504:
502:
499:
498:
490:
488:
484:
481:
479:
475:
472:
471:
464:Reads a byte/
463:
461:
458:
456:
453:
452:
445:Reads a byte/
444:
442:
438:
435:
433:
429:
426:
424:input/output
420:
416:
414:
410:
406:
404:
399:input/output
395:
391:
389:
385:
381:
379:
375:
371:
369:
365:
361:
359:
355:
351:
349:
345:
341:
339:
335:
331:
329:
322:
318:
313:
308:
306:
305:
302:
300:
289:
275:
266:
264:
260:
254:
252:
248:
247:random-access
244:
240:
235:
233:
229:
225:
221:
215:
210:
207:
203:
200:
196:
193:
189:
177:
172:
170:
165:
163:
158:
157:
155:
154:
147:
142:
138:
133:
129:
124:
120:
115:
114:
113:
112:
108:
107:
102:
99:
97:
94:
92:
89:
87:
84:
82:
79:
77:
74:
72:
69:
67:
64:
62:
59:
57:
54:
52:
49:
48:
47:
46:
42:
41:
37:
34:
33:
30:
19:
2496:Input/output
2467:
2323:Code::Blocks
2295:Watcom C/C++
2114:
2083:Preprocessor
2063:Header files
1940:
1934:
1915:
1906:
1880:. Retrieved
1870:
1847:
1835:. Retrieved
1831:
1822:
1809:
1799:
1780:
1767:
1758:
1753:
1711:
1689:
1667:EXIT_SUCCESS
1658:'\n'
1553:EXIT_FAILURE
1469:EXIT_FAILURE
1344:
1342:
1327:objects and
1302:
1225:FILE pointer
1222:
1215:
1200:
1197:Member types
1134:
1066:
1063:null pointer
1034:
1018:
1002:
927:
595:Puts a byte/
538:
422:Unformatted
324:File access
319:Description
281:
272:
255:
236:
213:
185:
81:Localization
70:
29:
2414:Objective-C
2195:Windows CRT
874:Operations
676:from stdin,
533:from stdin
286:(or in the
66:Mathematics
2485:Categories
2390:Descendant
2262:Norcroft C
2088:Data types
2037:Embedded C
1745:References
1299:Extensions
1242:the buffer
1035:unbuffered
986:FOPEN_MAX
777:to stderr
604:Formatted
567:to stdout
316:character
311:character
51:Data types
2392:languages
2224:Compilers
2166:libhybris
2068:Operators
2058:Functions
1920:CiteSeerX
1777:Pike, Rob
1294:operator.
1124:Variables
1098:SEEK_SET
1086:SEEK_END
1074:SEEK_CUR
1053:function
1042:L_tmpnam
1031:setvbuf()
1015:setvbuf()
999:setvbuf()
969:function
924:Constants
876:on files
841:handling
750:vswprintf
746:vfwprintf
737:vsnprintf
299:namespace
278:Functions
232:Version 7
224:Bell Labs
220:Mike Lesk
195:functions
76:Date/time
2469:Category
2443:Designer
2358:NetBeans
2348:KDevelop
2328:CodeLite
2173:dietlibc
2140:Variadic
2115:File I/O
2051:Features
1892:cite web
1882:16 March
1807:(1987).
1779:(1984).
1728:See also
1698:iostream
1358:#include
1352:#include
1313:readline
1115:tmpnam()
1110:TMP_MAX
1051:tmpnam()
967:setbuf()
845:clearerr
742:vwprintf
733:vsprintf
729:vfprintf
709:swprintf
705:fwprintf
696:snprintf
668:vswscanf
664:vfwscanf
559:putwchar
525:getwchar
269:Overview
146:stdarg.h
137:setjmp.h
119:assert.h
2333:Eclipse
2286:Express
2042:MISRA C
1854:stdio.h
1837:25 July
1652:putchar
1457:\"
1451:\"
1339:Example
1103:fseek()
1091:fseek()
1079:fseek()
1026:_IONBF
1010:_IOLBF
994:_IOFBF
903:tmpfile
897:a file
895:Renames
820:fsetpos
810:fgetpos
801:fseeko
789:ftello
756:wchar_t
725:vprintf
715:wchar_t
701:wprintf
692:sprintf
688:fprintf
674:wchar_t
660:vwscanf
655:vsscanf
651:vfscanf
637:wchar_t
631:swscanf
627:fwscanf
597:wchar_t
591:ungetwc
565:wchar_t
554:putchar
531:wchar_t
520:getchar
512:wchar_t
493:wchar_t
466:wchar_t
447:wchar_t
397:Direct
378:setvbuf
338:freopen
290:header
239:streams
214:stdio.h
128:errno.h
96:Signals
61:Strings
2313:Anjuta
2210:uClibc
2205:Newlib
2183:EGLIBC
2161:Bionic
2130:String
2078:Syntax
2073:String
2012:ANSI C
1922:
1664:return
1643:buffer
1631:printf
1574:printf
1562:fclose
1550:return
1544:stderr
1538:"
1490:buffer
1466:return
1460:"
1454:myfile
1442:perror
1385:buffer
1345:myfile
1321:fdopen
1317:fileno
1291:sizeof
1282:size_t
1276:fpos_t
1218:handle
1182:stderr
1168:stdout
1148:Notes
961:BUFSIZ
941:Notes
913:tmpnam
890:rename
880:remove
865:ferror
830:rewind
766:perror
684:printf
647:vscanf
623:wscanf
618:sscanf
614:fscanf
586:ungetc
506:fputws
483:fputwc
460:fgetws
437:fgetwc
413:fwrite
368:setbuf
358:fclose
348:fflush
292:cstdio
209:header
38:(libc)
2424:Limbo
2338:Geany
2318:CLion
2242:Clang
2190:klibc
2178:glibc
2145:POSIX
1814:(PDF)
1718:stdio
1707:stdio
1692:stdio
1526:fputs
1484:fread
1403:fopen
1309:stdio
1305:POSIX
1284:โ an
1221:or a
1216:file
1154:stdin
1058:NULL
839:Error
798:fseek
786:ftell
610:scanf
501:fputs
487:putwc
474:fputc
455:fgets
441:getwc
428:fgetc
403:fread
388:fwide
328:fopen
243:bytes
18:Fseek
2434:Vala
2419:Alef
2305:IDEs
2272:SDCC
2200:musl
2135:Time
2120:Math
2110:Char
1898:link
1884:2021
1839:2021
1696:C++
1610:<
1514:<
1433:NULL
1391:FILE
1382:char
1373:void
1367:main
1333:FILE
1325:FILE
1319:and
1303:The
1211:FILE
1188:FILE
1174:FILE
1160:FILE
1145:Name
1047:char
979:char
938:Name
855:feof
573:puts
540:gets
478:putc
432:getc
314:Wide
309:Byte
251:seek
228:Unix
216:>
212:<
199:file
197:for
186:The
148:>
144:<
139:>
135:<
130:>
126:<
121:>
117:<
2399:C++
2290:C++
2277:TCC
2267:PCC
2257:LCC
2252:ICC
2247:GCC
2232:ACK
2032:C23
2027:C17
2022:C11
2017:C99
1832:C++
1592:int
1586:for
1364:int
1268:C11
1067:not
953:int
947:EOF
301:).
296:std
288:C++
265:).
263:PHP
241:of
222:at
2487::
2429:Go
2404:C#
2288:,
2284:,
1894:}}
1890:{{
1830:.
1789::
1785:.
1775:;
1661:);
1646:);
1619:++
1583:);
1571:);
1568:fp
1547:);
1535:\n
1508:fp
1478:if
1463:);
1430:==
1427:fp
1421:if
1418:);
1397:fp
770:โ
577:โ
545:โ
234:.
2409:D
1993:e
1986:t
1979:v
1928:.
1900:)
1886:.
1841:.
1687:.
1673:}
1670:;
1655:(
1649:}
1640:,
1634:(
1628:{
1625:)
1622:i
1616:;
1613:5
1607:i
1604:;
1601:0
1598:=
1595:i
1589:(
1577:(
1565:(
1559:}
1556:;
1541:,
1529:(
1523:{
1520:)
1517:5
1511:)
1505:,
1502:5
1499:,
1496:1
1493:,
1487:(
1481:(
1475:}
1472:;
1445:(
1439:{
1436:)
1424:(
1412:,
1406:(
1400:=
1394:*
1388:;
1379:{
1376:)
1370:(
1270:)
175:e
168:t
161:v
20:)
Text is available under the Creative Commons Attribution-ShareAlike License. Additional terms may apply.