[fpc-pascal]Temporary file names under GO32

Michael Van Canneyt michael.vancanneyt at wisa.be
Mon Nov 26 11:37:12 CET 2001


On Mon, 26 Nov 2001, Aitor Santamaría 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;
> >
>
> Well, thanks to all for the contribution, but my priority is it to be GO32V2, does it work under this platform?

It should be as it is part of the C library.

Michael.





More information about the fpc-pascal mailing list