Open main menu
Home
Random
Recent changes
Special pages
Community portal
Preferences
About Wikipedia
Disclaimers
Incubator escapee wiki
Search
User menu
Talk
Dark mode
Contributions
Create account
Log in
Editing
C file input/output
(section)
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
===Constants=== Constants defined in the {{mono|<stdio.h>}} header include: {| class="wikitable" |- ! Name !! Notes |- ! style="font-family:monospace" | [[End-of-file|EOF]] | A negative integer of type {{mono|int}} used to indicate end-of-file conditions |- ! style="font-family:monospace" | {{Anchor|BUFSIZ}} [http://c-p-p.net/c/stdio.h/bufsiz BUFSIZ] | An integer which is the size of the buffer used by the {{mono|setbuf()}} function |- ! style="font-family:monospace" | FILENAME_MAX | The size of a {{mono|char}} array which is large enough to store the name of any file that can be opened |- ! style="font-family:monospace" | FOPEN_MAX | The number of files that may be open simultaneously; will be at least eight |- ! style="font-family:monospace" | _IOFBF | An abbreviation for "input/output fully buffered"; it is an integer which may be passed to the {{mono|setvbuf()}} function to request ''block buffered'' input and output for an open stream |- ! style="font-family:monospace" | _IOLBF | An abbreviation for "input/output line buffered"; it is an integer which may be passed to the {{mono|setvbuf()}} function to request ''line buffered'' input and output for an open stream |- ! style="font-family:monospace" | _IONBF | An abbreviation for "input/output not buffered"; it is an integer which may be passed to the {{mono|setvbuf()}} function to request ''unbuffered'' input and output for an open stream |- ! style="font-family:monospace" | L_tmpnam | The size of a {{mono|char}} array which is large enough to store a temporary filename generated by the {{mono|tmpnam()}} function |- ! style="font-family:monospace" | NULL | A macro expanding to the [[null pointer]] constant; that is, a constant representing a pointer value which is guaranteed '''not''' to be a valid address of an object in memory |- ! style="font-family:monospace" | SEEK_CUR | An integer which may be passed to the {{mono|fseek()}} function to request positioning relative to the current file position |- ! style="font-family:monospace" | SEEK_END | An integer which may be passed to the {{mono|fseek()}} function to request positioning relative to the end of the file |- ! style="font-family:monospace" | SEEK_SET | An integer which may be passed to the {{mono|fseek()}} function to request positioning relative to the beginning of the file |- ! style="font-family:monospace" | TMP_MAX | The maximum number of unique filenames generable by the {{mono|tmpnam()}} function; will be at least 25 |}
Edit summary
(Briefly describe your changes)
By publishing changes, you agree to the
Terms of Use
, and you irrevocably agree to release your contribution under the
CC BY-SA 4.0 License
and the
GFDL
. You agree that a hyperlink or URL is sufficient attribution under the Creative Commons license.
Cancel
Editing help
(opens in new window)