Fixed up the path spec and filename in the header blocks
[reactos.git] / reactos / lib / msvcrt / stdlib / fullpath.c
1 /*
2 * COPYRIGHT: See COPYING in the top level directory
3 * PROJECT: ReactOS system libraries
4 * FILE: lib/msvcrt/stdlib/fullpath.c
5 * PURPOSE: Gets the fullpathname
6 * PROGRAMER: Boudewijn Dekker
7 * UPDATE HISTORY:
8 * 28/12/98: Created
9 */
10 #include <windows.h>
11 #include <msvcrt/stdlib.h>
12
13 char *_fullpath( char *absPath, const char *relPath, size_t maxLength )
14 {
15 char *lpFilePart;
16 if ( GetFullPathNameA(relPath,maxLength,absPath,&lpFilePart) == 0 )
17 return NULL;
18
19 return absPath;
20 }
21
22 wchar_t *_wfullpath( wchar_t *absPath, const wchar_t *relPath, size_t maxLength )
23 {
24 wchar_t *lpFilePart;
25 if ( GetFullPathNameW(relPath,maxLength,absPath,&lpFilePart) == 0 )
26 return NULL;
27
28 return absPath;
29 }