From: Ian Scott <ian.scott@st...> - 2001-12-17 11:46:19
read the TEMP environment variable
This has been set on every MS computer I've ever seen.
Alternatively use C:\Temp, which exists on every MS computer I've ever seen.
Note however, with modern MS OSes, e.g. Win NT, $TEMP != C:\Temp.
> -----Original Message-----
> From: Amitha Perera [mailto:perera@...]
> Sent: Friday, December 14, 2001 8:13 PM
> To: Peter.Vanroose@...
> Cc: vxl-users@...
> Subject: Re: [Vxl-users] vcl_tempnam
> On Thu, Dec 13, 2001 at 04:05:56PM +0100,
> Peter.Vanroose@... wrote:
> > If not, and if tmpnam/tempnam have platform-specific behaviour, we
> > could better implement our own vul_tempname or so.
> The GCC warnings and errors on tmpnam have bugged me enough that I
> wrote vul_tmpnam. I'll replace all instances of tmpnam with vul_tmpnam
> soon, unless someone protests.
> [ Question for Windows users: is there a way to find out what the temp
> directory name is? ANSI C says use P_tmpdir from stdio.h, and the
> Windows documentation concurs, but when I ran a test on Windows,
> P_tmpdir was set to "/" [ or may be "C:\"; I forget ]. )
> Vxl-users mailing list