xref: /original-bsd/lib/libc/stdio/tempnam.c (revision 014fe330)
1 /* @(#)tempnam.c	4.1 (Berkeley) 12/21/80 */
2 char *tmpnam(s)
3 char *s;
4 {
5 	static seed;
6 
7 	sprintf(s, "temp.%d.%d", getpid(), seed++);
8 	return(s);
9 }
10