From 93ced3e88db28428a60ceff313c9274b8478fb1d Mon Sep 17 00:00:00 2001 From: Bill Joy Date: Mon, 22 Dec 1980 00:51:02 -0800 Subject: [PATCH] date and time created 80/12/21 16:51:02 by wnj SCCS-vsn: lib/libc/stdio/tempnam.c 4.1 --- usr/src/lib/libc/stdio/tempnam.c | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 usr/src/lib/libc/stdio/tempnam.c diff --git a/usr/src/lib/libc/stdio/tempnam.c b/usr/src/lib/libc/stdio/tempnam.c new file mode 100644 index 0000000000..741186ecce --- /dev/null +++ b/usr/src/lib/libc/stdio/tempnam.c @@ -0,0 +1,9 @@ +/* @(#)tempnam.c 4.1 (Berkeley) %G% */ +char *tmpnam(s) +char *s; +{ + static seed; + + sprintf(s, "temp.%d.%d", getpid(), seed++); + return(s); +} -- 2.20.1