Manual page for TMPNAM(3S)
tmpnam - generate unique file name
SYNOPSIS
#include <stdio.h>
char *tmpnam(char *s);
DESCRIPTION
Tmpnam
generates a string that is a valid file name
and is not the same as the name of an existing file.
Tmpnam
generates a different string each time it is called, up to TMP_MAX times.
If called more than TMP_MAX times, the behavior is undefined.
RETURN VALUE
If the argument is a null pointer,
tmpnam
leaves its result in an internal static object and returns a pointer
to that object. Subsequent calls to
tmpnam
will modify this object.
If the argument is not a null pointer, it is assumed to point to
an array of at least
L_tmpnam
characters; the
tmpnam
function writes its result in that array and
returns the argument as its value.
SEE ALSO
tmpfile(3S)
Created by unroff & hp-tools.
© somebody (See intro for details). All Rights Reserved.
Last modified 11/5/97