tmpnam

Full prototype:

char* tmpnam(char*);  

Purpose and Notes:

Used to create dynamic file names that wont conflict with others. (probably! Math, am I right??)

Generates and returns a valid file name string in a manner that is pseudo-random enough that it should not conflict with any other file on the system.

Can generate up to TMP_MAX different strings which must be no less than 25.

Returns:

char*- Returns a string that can be used as a name for a temporary file with pretty darn good odds that it does not already exist on the filesystem.

Argument 1:

char*- If not null, will be pointed to the final string containing the unique file name. Just like the return.

Example 1