version 1.55 | | version 1.56 |
---|
| | |
/* | | /* |
* static char *rcsid_map_c = | | * static char *rcsid_map_c = |
* "$Id: map.c,v 1.55 2003/06/30 19:14:13 tchize Exp $"; | | * "$Id: map.c,v 1.56 2003/08/02 16:25:23 tchize Exp $"; |
*/ | | */ |
| | |
/* | | /* |
| | |
| | |
int check_path (char *name, int prepend_dir) | | int check_path (char *name, int prepend_dir) |
{ | | { |
#ifdef WIN32 /* ***win32: check this sucker in windows style. */ | | |
return(_access(name,0)); | | |
#else | | |
char buf[MAX_BUF], *endbuf; | | char buf[MAX_BUF], *endbuf; |
struct stat statbuf; | | struct stat statbuf; |
int mode = 0, i; | | int mode = 0, i; |
| | |
strcpy (buf, create_pathname(name)); | | strcpy (buf, create_pathname(name)); |
else | | else |
strcpy(buf, name); | | strcpy(buf, name); |
| | #ifdef WIN32 /* ***win32: check this sucker in windows style. */ |
| | return(_access(name,0)); |
| | #else |
| | |
/* old method (strchr(buf, '\0')) seemd very odd to me - | | /* old method (strchr(buf, '\0')) seemd very odd to me - |
* this method should be equivalant and is clearer. | | * this method should be equivalant and is clearer. |