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