.fi
.SH DESCRIPTION
The
-.B tmpnam()
+.BR tmpnam ()
function returns a pointer to a string that is a valid filename,
and such that a file with this name did not exist at some point
in time, so that naive programmers may think it
.I s
is NULL this name is generated in an internal static buffer
and may be overwritten by the next call to
-.BR tmpnam() .
+.BR tmpnam ().
If
.I s
is not NULL, the name is copied to the character array (of length
just like the TMP_MAX mentioned below.)
.SH "RETURN VALUE"
The
-.B tmpnam()
+.BR tmpnam ()
function returns a pointer to a unique temporary
filename, or NULL if a unique name cannot be generated.
.SH ERRORS
No errors are defined.
.SH NOTES
The
-.B tmpnam()
+.BR tmpnam ()
function generates a different string each time it is called,
up to TMP_MAX times. If it is called more than TMP_MAX times,
the behaviour is implementation defined.
.LP
Portable applications that use threads cannot call
-.B tmpnam()
+.BR tmpnam ()
with NULL parameter if either _POSIX_THREADS or
_POSIX_THREAD_SAFE_FUNCTIONS is defined.
.LP
A POSIX draft proposed to use a function
-.B tmpnam_r()
+.BR tmpnam_r ()
defined by
.sp
.nf