TIP: Click on subject to list as thread! ANSI
echo: os2prog
to: Richard Hulme
from: Andrew Clegg
date: 1995-04-20 21:50:02
subject: Unique Filenames

Hi, Richard.

-=> Richard Hulme spaketh unto All <=-

 RH> How can I create a file with a unique filename under OS/2?  I've
 RH> looked through the Control Programming reference (including a search
 RH> on 'unique') but I can't seem to find anything.

I don't know what compiler you're using, but EMX supports tempnam(),
tmpnam(), tempfile() and maketemp() which all provide different ways of
doing this. These are Unix system calls really, so I wouldn't be all that
surprised if not many compilers used them -- they are not ANSI.

Andrew.

// Sig++                           andrew{at}donor2.demon.co.uk

--- LoraBBS-OS/2 v2.40b4 (Eval.)
* Origin: Ten Ground And Down, Guildford UK (2:440/4.10)
SEEN-BY: 105/42 620/243 711/401 409 410 413 430 807 808 809 934 955 712/407
SEEN-BY: 712/515 628 704 713/888 800/1 7877/2809
@PATH: 440/4 141/209 270/101 105/103 42 712/515 711/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™.