casts to (void)
Chris Torek
chris at umcp-cs.UUCP
Wed Aug 14 06:46:01 AEST 1985
>. . . and tempnam is just a throwback to the days before sprintf.
Not really; tempnam (or mktemp) is not the same as doing
sprintf(fname, "/tmp/x%d", getpid());
(or variations thereupon) as it actually makes sure that such a
file doesn't already exist (what happens when you get the same pid
as someone else did earlier?).
--
In-Real-Life: Chris Torek, Univ of MD Comp Sci Dept (+1 301 454 4251)
UUCP: seismo!umcp-cs!chris
CSNet: chris at umcp-cs ARPA: chris at maryland
More information about the Comp.lang.c
mailing list