C Language and Libraries Help (clang.hlp) (Table of Contents; Topic list)
Important Notice
The pages on this site contain documentation for very old MS-DOS software, purely for historical purposes. If you're looking for up-to-date documentation, particularly for programming, you should not rely on the information found here, as it will be woefully out of date.
_fullpath
 Summary Example                         Up Contents Index Back
─────Run-Time Library───────────────────────────────────────────────────────
 
     The _fullpath routine converts the partial path stored in
     <pathname> to a fully qualified path that is stored in <buffer>.
     Unlike _makepath, the _fullpath routine can be used with .\ and
     ..\ in the path.
 
     If the length of the fully qualified path is greater than the
     value of <maxlen>, then NULL is returned. Otherwise, the address
     of <buffer> is returned.
 
     If the buffer is NULL, _fullpath will allocate a buffer of
     size _MAX_PATH (defined in STDLIB.H), and the <maxlen> argument
     is ignored. It is the caller's responsibility to deallocate this
     buffer (using free) as appropriate.
 
     If the <pathname> argument specifies a disk drive, the current
     directory of this drive is combined with the path. The _fullpath
     function does not check for validity of the drive or directory;
     its purpose is only to build a complete, valid path name.
 
     Return Value
 
     The _fullpath function returns a pointer to the buffer containing
     the absolute path (<buffer>). If there is an error, _fullpath
     returns NULL.
                                    -♦-