File and Path Function
int mkstemp(char *template);
Internationalization (I18n) Function Overview
The mkstemp function generates a unique file name just as
mktemp does, but it also opens the file with a call to open .
If successful, it modifies template in place and returns a file descriptor for that file open for reading and writing.
If mkstemp cannot create a uniquely-named file, it returns -1 .
If template does not end with XXXXXX ,
mkstemp returns -1 and does not modify template .
Note that the file is opened using mode 0600. If the file is meant to be
used by other users, then this mode must be changed explicitly.
I18n Issues
On ANSI UTF-16 platforms, use a conversion function to convert the
wide-character string to a multibyte-character string and then call mkstemp .
See Pathnames for a discussion of path and filename considerations in
an internationalized application.
Recommended Replacements*
*If you're already using the recommended function, see I18n Issues for other reasons why Globalyzer is detecting the function.
File and Path Functions
|