Changeset 809 for trunk/dll/srchpath.c
- Timestamp:
- Aug 26, 2007, 7:44:52 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/dll/srchpath.c
r793 r809 4 4 $Id$ 5 5 6 Path search Functions6 Path search functions 7 7 8 8 Copyright (c) 1993-98 M. Kimes 9 Copyright (c) 2003, 2007 Steven H. Levine9 Copyright (c) 2003, 2007 Steven H. Levine 10 10 11 11 22 Apr 07 GKY Add RunFM2Util to find and run apps from the FM2Utilities 12 12 20 Aug 07 GKY Move #pragma alloc_text to end for OpenWatcom compat 13 23 Aug 07 SHL Comments 13 14 14 15 ***********************************************************************/ … … 91 92 } 92 93 93 CHAR *searchapath(CHAR * path, CHAR * filename) 94 /** 95 * Search for file in name PATH env variable 96 * 23 Aug 07 SHL fixme to be MT safe 97 */ 98 99 CHAR *searchapath(CHAR *pathvar, CHAR *filename) 94 100 { 95 96 101 static CHAR fbuf[CCHMAXPATH]; 97 102 … … 109 114 if (DosSearchPath(SEARCH_IGNORENETERRS | SEARCH_ENVIRONMENT | 110 115 SEARCH_CUR_DIRECTORY, 111 path , filename, fbuf, CCHMAXPATH - 1))116 pathvar, filename, fbuf, CCHMAXPATH - 1)) 112 117 *fbuf = 0; 113 118 return fbuf; … … 116 121 CHAR *searchpath(CHAR * filename) 117 122 { 118 119 123 CHAR *found; 120 124
Note:
See TracChangeset
for help on using the changeset viewer.