|
FYI.. ..I got curious on the issue, and though IBM's links dead-ended on the tmpnam() API, and although it is guaranteed to be unique at the time it returns the name, it does not guarantee that another file won't create one with the same name before you get there. Looks like tmpfile() not only generates the unique name but creates and opens the file, which now might be a premature open.. FYI... --Alan
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.