|
From: Petr M. <mi...@ph...> - 2003-11-25 09:38:00
|
Further, it was crashing in read-only directory. I've fixed that.
The problem is that it needs to write two temporary files ('save set', and
palette data). For that, I use mkstemp(). But this functions makes the file
in the current directory.
Man page of tmpnam() and of tempnam() says:
Never use this function. Use mkstemp(3) instead.
Is there any safe and portable way to create a file in a temporary
directory, like /tmp or C:\TMP?
---
Petr Mikulik
|