1 2 3 4 5 6 7 8 9 10 11 12
#include "internal.h" char* osยทdirname(char *path) { char *sep; if((sep = strrchr(path, '/'))) *sep = 0; return path; }