Content deleted Content added
No edit summary |
remove faulty "example" from end of article, modify first P |
||
Line 1:
{{wrongtitle|title="fopen"}}
In [[computer programming]], the <code>'''fopen'''</code>
They are defined as.▼
:<code>FILE * fopen(const char *path, const char *mode);</code>
:<code>FILE * fdopen(int fildes, const char *mode);</code>
:<code>FILE * freopen(const char *path, const char *mode, FILE * restrict stream);</code>
The '''<code>fdopen</code>''' function is not standard in C89 or C99, but is an extension used in [[POSIX]] environments and imitated elsewhere.
The '''mode''' parameter is a string that begins with one of the following sequences:
Line 26 ⟶ 25:
a+b or ab+ Append: open or create binary file for update, writing at end-of-file
The C standard gives two kinds of files
[[Category:C standard library]]
|