I get this warning saying that tmpnam is dangerous, but I would prefer to use it, since it can be used as is in Windows as well as Linux. I was wondering why it would be considered dangerous (I’m guessing it’s because of the potential for misuse rather than it actually not working properly).
Share
From tmpnam manpage :
Mktemp really create the file, so you are assured it works, whereas tmpnam returns a name, possibly already existing.