Synopsis
char *debug_tmpnam(char *str);
Description

debug_tmpnam returns a unique temporary filename. If str is NULL then a static buffer is used to store the filename, otherwise the filename is stored in str. On success a pointer to the string is returned, on failure 0 is returned.