temporary files - what is the resolution?
Brad Roberts
braddr at puremagic.com
Fri Jul 27 12:44:40 PDT 2012
On Fri, 27 Jul 2012, Jonathan M Davis wrote:
> On Friday, July 27, 2012 17:37:20 Marco Leise wrote:
> > P.S.: There is a _mktemp_s in MS CRT, but it allows for only 26 unique names
> > per calling thread, directory and prefix :p
>
> Yes. And some POSIX systems have exactly the same problem with mkstemp. And
> given how easy it is to write a function which just generates a random file
> name, I see no reason to deal with nonsense like that. As far as I can tell,
> _every_ C function for generating either a random file or a random file name has
> a caveat of some sort.
Which has that limit? I haven't found one yet.
More information about the Digitalmars-d
mailing list