Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Posting-Version: version B 2.10.1 6/24/83; site umcp-cs.UUCP
Path: utzoo!linus!philabs!cmcl2!seismo!umcp-cs!chris
From: chris@umcp-cs.UUCP (Chris Torek)
Newsgroups: net.lang.c
Subject: Re: Re: Re:  casts to (void)
Message-ID: <1210@umcp-cs.UUCP>
Date: Tue, 13-Aug-85 16:46:01 EDT
Article-I.D.: umcp-cs.1210
Posted: Tue Aug 13 16:46:01 1985
Date-Received: Thu, 15-Aug-85 00:45:43 EDT
References: <441@brl-tgr.ARPA> <261@kitty.UUCP> <549@brl-tgr.ARPA> <363@baylor.UUCP>
Organization: U of Maryland, Computer Science Dept., College Park, MD
Lines: 13

>. . . 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@umcp-cs		ARPA:	chris@maryland