static int filename_comp(char *name1,char *name2) { char abs1[512],abs2[512]; /* First do a straight compare */ if (!fstrcmp(name1,name2)) return(0); /* Convert to absolute path and compare */ strcpy(abs1,name1); wfile_make_absolute(abs1); strcpy(abs2,name2); wfile_make_absolute(abs2); return(fstrcmp(abs1,abs2)); }
static char *folder_name(char *filename) { static char path[512]; strcpy(path,filename); wfile_make_absolute(path); wfile_basepath(path,NULL); return(path); }