2 #include <msvcrt/stdio.h>
3 #include <msvcrt/stdlib.h>
9 char *_tempnam(const char *dir,const char *prefix )
11 char *TempFileName = malloc(MAX_PATH);
19 #ifdef _MSVCRT_LIB_ // TODO: check on difference?
20 if (GetTempFileNameA(d, prefix, 1, TempFileName) == 0) {
21 #else// TODO: FIXME: review which is correct
22 if (GetTempFileNameA(d, prefix, 0, TempFileName) == 0) {
23 #endif /*_MSVCRT_LIB_*/