18 extern char *
copy(
char*);
85 char buf[512], buf1[512];
100 if (!strcmp(mode,
"r")) {
104 *prealname =
copy(file);
109 if (!
path || !*
path || file[0] ==
'/' 111 || file[0] ==
'\\' || file[1] ==
':' 115 *prealname =
copy(file);
116 return (fopen(file,mode));
123 while (isspace(*p)) p++;
125 while ((*p !=
'\0') && !isspace(*p))
130 f = fopen(buf1, mode);
133 *prealname =
copy(buf1);
void cp_pathfix(char *buf)
static char buf[MAXPROMPT]
int PSetPath(char *string)
FILE * POpen(char *file, char *mode, char **prealname)
int PAppendPath(char *string)