/pkg/helpers.c |
---|
122,17 → 122,6 |
} |
/* detect local paths (eg. C:\REPO). Returns 1 if the url looks like a local path, zero otherwise. */ |
int detect_localpath(char *url) { |
if (url[0] != 0) { |
if (url[1] != 0) { |
if ((url[1] == ':') && ((url[2] == '\\') || (url[2] == '/'))) return(1); |
} |
} |
return(0); |
} |
/* analyzes a filename string and returns the pointer to the file's extension |
* (which can be empty) */ |
char *getfext(char *fname) { |
/pkg/helpers.h |
---|
14,7 → 14,6 |
void mkpath(char *dirs); |
char *computelocalpath(char *longfilename, char *respath, const char *dosdir, const struct customdirs *dirlist); |
void removeDoubleBackslashes(char *str); |
int detect_localpath(char *url); |
char *getfext(char *fname); |
int freadtokval(FILE *fd, char *line, size_t maxlen, char **val, char delim); |
#endif |