TMPNAM

Section: Standard I/O Functions (3S)
Updated: August 1, 1992
Index Return to Main Contents
 

NAME

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)


 

Index

NAME
SYNOPSIS
DESCRIPTION
RETURN VALUE
SEE ALSO

This document was created by man2html, using the manual pages.
Time: 00:58:03 GMT, September 26, 2024