Re: Tinderbox tyrant (wv issues)


Subject: Re: Tinderbox tyrant (wv issues)
From: Dom Lachowicz (cinamod@hotmail.com)
Date: Fri Oct 13 2000 - 11:40:17 CDT


I'll change this back to tmpnam. I changed this behavior last night because
gcc was bitching at me.

Dom

>From: "Mike Nordell" <tamlin@algonet.se>
>To: "AbiWord-dev" <abiword-dev@abisource.com>
>Subject: Re: Tinderbox tyrant (wv issues)
>Date: Fri, 13 Oct 2000 17:51:03 +0100
>
>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
>
>

_________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.

Share information about yourself, create your own public profile at
http://profiles.msn.com.



This archive was generated by hypermail 2b25 : Fri Oct 13 2000 - 11:40:23 CDT