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