C Language and Libraries Help (clang.hlp) (Table of Contents; Topic list)
_searchenv
 Summary Example                         Up Contents Index Back
─────Run-Time Library───────────────────────────────────────────────────────
 
     The _searchenv function searches for the target file in the
     specified domain. The <varname> variable can be any environment
     variable that specifies a list of directory paths, such as PATH,
     LIB, INCLUDE, or other user-defined variables. The _searchenv
     function is case sensitive, so <varname> should match the case of
     the environment variable.
 
     The routine first searches for the file in the current working
     directory. If it does not find the file, it looks next through the
     directories specified by the environment variable.
 
     If the target file is found in one of the directories, the newly
     created path is copied into the buffer pointed to by <pathname>.
     You must ensure that there is sufficient space for the constructed
     path name. If <filename> is not found, <pathname> will contain
     an empty null-terminated string.
 
     Return Value
 
     None.
                                    -♦-