TIP: Click on subject to list as thread! ANSI
echo: cis.languages
to: SCOTT HOWELL 70270,641
from: Bruce MacKenzie 71725,376
date: 1990-08-02 16:51:57
subject: #5780-mktime function help

#: 5782 S3/Languages
    02-Aug-90  16:51:57
Sb: #5780-mktime function help
Fm: Bruce MacKenzie 71725,376
To: SCOTT HOWELL 70270,641

It's easy enough Scott.

 char str[12];
 FILE *out;

 strcpy(str,"temp.XXXXX");
 mktemp(str);
 out=fopen(str,"w");

The above creates a file with a name such as temp.5 or temp.3 depending on what
the process id is.

SOURCE: compuserve via textfiles.com

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.