stdio.3 (064f007493a990a098f3f0f5ae66732c5747c837) | stdio.3 (712dc76e87bd7bbeb3f781e690886b69a1f9c5ca) |
---|---|
1.\" Copyright (c) 1990, 1991, 1993 2.\" The Regents of the University of California. All rights reserved. 3.\" 4.\" Redistribution and use in source and binary forms, with or without 5.\" modification, are permitted provided that the following conditions 6.\" are met: 7.\" 1. Redistributions of source code must retain the above copyright 8.\" notice, this list of conditions and the following disclaimer. --- 49 unchanged lines hidden (view full) --- 58device) by 59.Em opening 60a file, which may involve creating a new file. Creating an 61existing file causes its former contents to be discarded. 62If a file can support positioning requests (such as a disk file, as opposed 63to a terminal) then a 64.Em file position indicator 65associated with the stream is positioned at the start of the file (byte | 1.\" Copyright (c) 1990, 1991, 1993 2.\" The Regents of the University of California. All rights reserved. 3.\" 4.\" Redistribution and use in source and binary forms, with or without 5.\" modification, are permitted provided that the following conditions 6.\" are met: 7.\" 1. Redistributions of source code must retain the above copyright 8.\" notice, this list of conditions and the following disclaimer. --- 49 unchanged lines hidden (view full) --- 58device) by 59.Em opening 60a file, which may involve creating a new file. Creating an 61existing file causes its former contents to be discarded. 62If a file can support positioning requests (such as a disk file, as opposed 63to a terminal) then a 64.Em file position indicator 65associated with the stream is positioned at the start of the file (byte |
66zero), unless the file is opened with appended mode. If append mode | 66zero), unless the file is opened with append mode. If append mode |
67is used, the position indicator will be placed the end-of-file. 68The position indicator is maintained by subsequent reads, writes 69and positioning requests. All input occurs as if the characters 70were read by successive calls to the 71.Xr fgetc 3 72function; all output takes place as if all characters were 73read by successive calls to the 74.Xr fputc 3 --- 31 unchanged lines hidden (view full) --- 106At program startup, three streams are predefined and need not be 107opened explicitly: 108.Bl -bullet -compact -offset indent 109.It 110.Em standard input 111(for reading conventional input), 112.It 113.Em standard output | 67is used, the position indicator will be placed the end-of-file. 68The position indicator is maintained by subsequent reads, writes 69and positioning requests. All input occurs as if the characters 70were read by successive calls to the 71.Xr fgetc 3 72function; all output takes place as if all characters were 73read by successive calls to the 74.Xr fputc 3 --- 31 unchanged lines hidden (view full) --- 106At program startup, three streams are predefined and need not be 107opened explicitly: 108.Bl -bullet -compact -offset indent 109.It 110.Em standard input 111(for reading conventional input), 112.It 113.Em standard output |
114(for writing conventional input), and | 114(for writing conventional output), and |
115.It 116.Em standard error 117(for writing diagnostic output). 118.El 119These streams are abbreviated 120.Em stdin , stdout 121and 122.Em stderr . --- 101 unchanged lines hidden (view full) --- 224.Sy Function Description 225clearerr check and reset stream status 226fclose close a stream 227fdopen stream open functions 228feof check and reset stream status 229ferror check and reset stream status 230fflush flush a stream 231fgetc get next character or word from input stream | 115.It 116.Em standard error 117(for writing diagnostic output). 118.El 119These streams are abbreviated 120.Em stdin , stdout 121and 122.Em stderr . --- 101 unchanged lines hidden (view full) --- 224.Sy Function Description 225clearerr check and reset stream status 226fclose close a stream 227fdopen stream open functions 228feof check and reset stream status 229ferror check and reset stream status 230fflush flush a stream 231fgetc get next character or word from input stream |
232fgetline get a line from a stream | 232fgetln get a line from a stream |
233fgetpos reposition a stream 234fgets get a line from a stream 235fileno check and reset stream status 236fopen stream open functions 237fprintf formatted output conversion 238fpurge flush a stream 239fputc output a character or word to a stream 240fputs output a line to a stream --- 47 unchanged lines hidden --- | 233fgetpos reposition a stream 234fgets get a line from a stream 235fileno check and reset stream status 236fopen stream open functions 237fprintf formatted output conversion 238fpurge flush a stream 239fputc output a character or word to a stream 240fputs output a line to a stream --- 47 unchanged lines hidden --- |