update for HEAD-2003091401
[reactos.git] / lib / msvcrt / stdio / wtmpnam.c
1 #include <windows.h>
2 #include <msvcrt/stdio.h>
3 #include <msvcrt/string.h>
4
5
6 /*
7  * @implemented
8  */
9 wchar_t* _wtmpnam(wchar_t* s)
10 {
11     wchar_t PathName[MAX_PATH];
12     static wchar_t static_buf[MAX_PATH];
13
14     GetTempPathW(MAX_PATH, PathName);
15     GetTempFileNameW(PathName, L"ARI", 007, static_buf);
16     wcscpy(s, static_buf);
17
18     return s;
19 }