home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Club Amiga de Montreal - CAM
/
CAM_CD_1.iso
/
files
/
387b.lha
/
dice_v2.02
/
lib
/
stdio
/
tmpnam.c
< prev
next >
Encoding:
Amiga
Atari
Commodore
DOS
FM Towns/JPY
Macintosh
Macintosh JP
Macintosh to JP
NeXTSTEP
RISC OS/Acorn
Shift JIS
UTF-8
Wrap
C/C++ Source or Header
|
1990-05-30
|
232 b
|
21 lines
/*
* TMPNAM()
*/
#include <stdio.h>
char *
tmpnam(buf)
char *buf;
{
static char Buf[L_tmpnam];
static long i;
if (buf == NULL)
buf = Buf;
sprintf(buf, "T:%08lx-%ld", FindTask(NULL), i++);
return(buf);
}