diff options
Diffstat (limited to 'man3/tmpfile.3')
| -rw-r--r-- | man3/tmpfile.3 | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/man3/tmpfile.3 b/man3/tmpfile.3 index ec2ebf5a94..ac7d7c5749 100644 --- a/man3/tmpfile.3 +++ b/man3/tmpfile.3 @@ -36,12 +36,16 @@ tmpfile \- create a temporary file .B FILE *tmpfile(void); .fi .SH DESCRIPTION -The \fBtmpfile\fP() function opens a unique temporary file +The +.BR tmpfile () +function opens a unique temporary file in binary read/write (w+b) mode. The file will be automatically deleted when it is closed or the program terminates. .SH "RETURN VALUE" -The \fBtmpfile\fP() function returns a stream descriptor, or NULL if +The +.BR tmpfile () +function returns a stream descriptor, or NULL if a unique filename cannot be generated or the unique file cannot be opened. In the latter case, \fIerrno\fP is set to indicate the error. |
