git://git.jankratochvil.net
/
reactos.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
update for HEAD-2003091401
[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
}