in reply to Alternate command for tmpnam
Please follow Corion's advice and also, please put <code> ..</code> tags around your snippet.
You can also be interested into sysopen function in junction with O_CREAT flag: you can cycle various file names until it returns not an error.
L*
|
|---|