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.

> Good luck with the race condition check on Windows!

It's easily done with the right function calls. It's just that their 
declarations are missing. I'll get back to sorting that out soon.

- Jonathan M Davis

Reply via email to