Subject: Re: Tinderbox tyrant (wv issues)
From: Mike Nordell (tamlin@algonet.se)
Date: Fri Oct 13 2000 - 11:51:03 CDT
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
This archive was generated by hypermail 2b25 : Fri Oct 13 2000 - 10:51:00 CDT