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