[fpc-pascal]Temporary file names under GO32
Michael.VanCanneyt at Wisa.be
Michael.VanCanneyt at Wisa.be
Sun Nov 25 23:52:23 CET 2001
On Sun, 25 Nov 2001, Nico Aragon wrote:
> Hola,
>
> >Has anyone ever written a function to get a temporary unique file name?
>
> In Windows there're GetTempFileName and GetTempFileName32.
>
> For Linux, a hint: I heard that Borland had used somebody else's
> algorithm to implement GUIDs. Implementation could be in FreeCLX.
Simply use the tmpnam function from libc:
Function tmpnam (s : pchar) : pchar;cdecl;external 'c';
s may point to a buffer in which the filename is be copied;
Michael.
More information about the fpc-pascal
mailing list