| TIP: Click on subject to list as thread! | ANSI |
| echo: | |
|---|---|
| to: | |
| from: | |
| date: | |
| subject: | looking for routine to generate completely unique filenames |
Miha Valencic wrote in a message to Erik Huelsmann: EH> Is there anyone out there who has a routine to generate EH> completely unique filenames?? MV> There is a builtin function to create a unique filename... MV> (actually, there are two in C Set) tmpnam & _tempnam. The tmpnam() function is ANSI. MV> I think tmpname functions are limited to 25 files or so... I'm MV> not sure though. ANSI defines TMP_MAX as the minimum number of unique names guaranteed to be emitted by the tmpnam() function, and L_tmpnam as the length of a buffer which is guaranteed to be large enough to hold each name emitted by tmpnam(). TMP_MAX is defined as 32767 in Microsoft C, as 65535 in Borland C, and as 17576 (26*26*26) in Watcom C. -- Mike ---* Origin: N1BEE BBS +1 401 944 8498 V.34/V.FC/V.32bis/HST16.8 (1:323/107) SEEN-BY: 12/2442 620/243 624/50 632/348 640/820 690/660 711/409 410 413 430 SEEN-BY: 711/807 808 809 934 942 949 955 712/515 713/888 800/1 7877/2809 @PATH: 323/107 150 3615/50 229/2 12/2442 711/409 808 809 934 |
|
| SOURCE: echomail via fidonet.ozzmosis.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™.