Email address obfuscation in effect -- please
click here to turn it off.
[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
On Tuesday 11 June 2002 01:59 pm, you wrote:
> On Tue, 11 Jun 2002, Mike Miller wrote:
> > What do people do in C programming (for example) in writing temp files to
> > avoid conflicts when multiple instances of the program run
> > simultaneously? Do you make up some random string, or use the system
> > clock to get a string? What's a conventional approach to this?
>
> Have you tried:
>
> man 3 tmpfile
>
> and found it (or the friends mentioned) didn't do what you wanted?
>
> jking
Whew. There it is. I knew it. The tmpnam() function returns a valid, but
random, file name. See man 3 tmpnam.
Mark
--
To unsubscribe, go to http://mlug.missouri.edu/members/edit.php
Archives are available at http://mlug.missouri.edu/list-archives/