char *FileName (char *path) { char *c = path, *ret = path; if(c == 0) return 0; while(*c) { if(*c == '\\') ret = c+1; c++; } return ret; }