summaryrefslogtreecommitdiff
path: root/pppd_plugin/src/dirutil.h
blob: 4c9aa874c64ffa0917d4183088f9f4f22543c1d7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
/* dirutil.h ... directory utilities.
 *               C. Scott Ananian <cananian@alumni.princeton.edu>
 *
 * $Id: dirutil.h,v 1.1.1.1 2000/12/23 08:19:51 scott Exp $
 */

/* Returned malloc'ed string representing basename */
char *basenamex(char *pathname);
/* Return malloc'ed string representing directory name (no trailing slash) */
char *dirnamex(char *pathname);
/* In-place modify a string to remove trailing slashes.  Returns arg. */
char *stripslash(char *pathname);
/* ensure dirname exists, creating it if necessary. */
int make_valid_path(char *dirname, mode_t mode);