1/* dirutil.h ... directory utilities. 2 * C. Scott Ananian <cananian@alumni.princeton.edu> 3 * 4 * $Id: dirutil.h,v 1.1.1.1 2000/12/23 08:19:51 scott Exp $ 5 */ 6 7#ifdef CODE_IN_USE //Winster Chan added 05/16/2006 8/* Returned malloc'ed string representing basename */ 9char *basenamex(char *pathname); 10#endif //CODE_IN_USE Winster Chan added 05/16/2006 11/* Return malloc'ed string representing directory name (no trailing slash) */ 12char *dirname(char *pathname); 13/* In-place modify a string to remove trailing slashes. Returns arg. */ 14char *stripslash(char *pathname); 15/* ensure dirname exists, creating it if necessary. */ 16int make_valid_path(char *dirname, mode_t mode); 17