tmpnam

Generates file names that can be safely used for a temporary file.

Format

#include  <stdio.h>

char *tmpnam  (char *name);
Function Variants This function also has variants named _tmpnam32 and _tmpnam64 for use with 32-bit and 64-bit pointer sizes, respectively. See Section 1.8 for more information on using pointer-size-specific functions.

Argument

name
A character string containing a name to use in place of file- name arguments in functions or macros. Successive calls to tmpnam with a null argument cause the function to overwrite the current name.

Return Value
If the name argument is the null pointer value NULL, tmpnam returns the address of an internal storage area. If name is not NULL, then it is considered the address of an area of length L_tmpnam (defined in the <stdio.h> header file). In this case, tmpnam returns the name argument as the result. 


Previous Page | Next Page | Table of Contents | Index