46 |
* r) 1: absolute, 0: not absolute |
* r) 1: absolute, 0: not absolute |
47 |
*/ |
*/ |
48 |
int |
int |
49 |
isabspath(p) |
isabspath(const char *p) |
|
const char *p; |
|
50 |
{ |
{ |
51 |
if (p[0] == '/') |
if (p[0] == '/') |
52 |
return 1; |
return 1; |
68 |
* Note: canonpath rewrite argument buffer. |
* Note: canonpath rewrite argument buffer. |
69 |
*/ |
*/ |
70 |
char * |
char * |
71 |
canonpath(path) |
canonpath(char *path) |
|
char *path; |
|
72 |
{ |
{ |
73 |
#ifdef __DJGPP__ |
#ifdef __DJGPP__ |
74 |
char *p; |
char *p; |
152 |
* realpath: get the complete path |
* realpath: get the complete path |
153 |
*/ |
*/ |
154 |
char * |
char * |
155 |
realpath(in_path, out_path) |
realpath(const char *in_path, char *out_path) |
|
const char *in_path; |
|
|
char *out_path; |
|
156 |
{ |
{ |
157 |
#ifdef __DJGPP__ |
#ifdef __DJGPP__ |
158 |
/* |
/* |