Tomato 1.28
[tomato.git] / release / src / router / pptp-client / dirutil.h
blob12d5a767dbcc29a9f1d0ebabcfbaf45a33775f5e
1 /* dirutil.h ... directory utilities.
2 * C. Scott Ananian <cananian@alumni.princeton.edu>
4 * $Id: dirutil.h,v 1.1.1.1 2002/07/25 06:52:39 honor Exp $
5 */
7 /* Returned malloc'ed string representing basename */
8 char *basenamex(char *pathname);
9 /* Return malloc'ed string representing directory name (no trailing slash) */
10 char *dirname(char *pathname);
11 /* In-place modify a string to remove trailing slashes. Returns arg. */
12 char *stripslash(char *pathname);
13 /* ensure dirname exists, creating it if necessary. */
14 int make_valid_path(char *dirname, mode_t mode);