Constructs a unique filename.
#include <stdlib.h> int mkstemp (char *template);
The string pointed to by template should look like a file name with six trailing X's. The mkstemp function replaces each X with a character from the portable file-name character set, making sure not to duplicate an existing file name.
If the string pointed to by template does not contain six trailing Xs, -1 is returned.
x | An open file descriptor. |
-1 | Indicates an error. (The string pointed to by template does not contain six trailing Xs.) |