git://git.jankratochvil.net
/
reactos.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
ecd2fbb9818578bf6a1c11404bc5407db94161f0
[reactos.git]
/
lib
/
msvcrt
/
stdio
/
tmpnam.c
1
#include <windows.h>
2
#include <msvcrt/stdio.h>
3
#include <msvcrt/string.h>
4
5
6
char* tmpnam(char* s)
7
{
8
char PathName[MAX_PATH];
9
static char static_buf[MAX_PATH];
10
11
GetTempPathA(MAX_PATH, PathName);
12
GetTempFileNameA(PathName, "ARI", 007, static_buf);
13
strcpy(s,static_buf);
14
15
return s;
16
}