:pserver:cvsanon@mok.lvcm.com:/CVS/ReactOS reactos
[reactos.git] / lib / crtdll / stdlib / fullpath.c
1 /*
2  * COPYRIGHT:   See COPYING in the top level directory
3  * PROJECT:     ReactOS system libraries
4  * FILE:        lib/crtdll/stdlib/fullpath.c
5  * PURPOSE:     Gets the fullpathname
6  * PROGRAMER:   Boudewijn Dekker
7  * UPDATE HISTORY:
8  *              28/12/98: Created
9  */
10 #include <crtdll/stdlib.h>
11 #include <windows.h>
12
13 #undef fullpath
14 char *fullpath( char *absPath, const char *relPath, size_t maxLength )
15 {
16         return _fullpath(absPath,relPath,maxLength );
17 }
18
19 char *_fullpath( char *absPath, const char *relPath, size_t maxLength )
20 {
21         
22
23         char *lpFilePart;
24         if ( GetFullPathName(relPath,maxLength,absPath,&lpFilePart) == 0 )
25                 return NULL;
26
27         return absPath;
28 }
29                 
30   
31
32