Can anybody point me to the code that implements mkstemp() (C/C++) on Win32, or very close analog.
Must be race-free.
It\'s supposed to look like
You can use _mktemp_s() function, or any of it's variations:
errno_t _mktemp_s(
char *template,
size_t sizeInChars
);
where:
_mktemp_s
; wide characters in _wmktemp_s
, including the null terminator.It returns 0 on success, and an error code on failure. Note that the function modifyes the template
argument.