Thomas Fletcher wrote:
> Windows:
> int mkstemp(char *path)
> Doesn't exist on the Windows platform, this is a
> traditional unix command. What windows function can
> we use to encapsulate the creation of a temporary file
> returning an fd to the caller?
An fd?! Wouldn't a file stream (FILE*) be somewhat more appropriate? Like,
more portable. Unless the path where the tempfile should be created really
is crucial, what about the following?
FILE* ABI_mkstemp(const char* szPrefix)
{
return fopen(tmpnam(szPrefix), "wb");
}
/Mike - please don't CC