#include <stdio.h>
#include <string.h>
#include <ctype.h>
Go to the source code of this file.
int PAppendPath |
( |
char * |
string | ) |
|
Definition at line 46 of file paths.c.
void cp_pathfix(char *buf)
static char buf[MAXPROMPT]
int PSetPath(char *string)
FILE* POpen |
( |
char * |
file, |
|
|
char * |
mode, |
|
|
char ** |
prealname |
|
) |
| |
Definition at line 75 of file paths.c.
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 | ) |
|
Definition at line 26 of file paths.c.
void cp_pathfix(char *buf)
static char buf[MAXPROMPT]