Name

ap_make_dirstr — make a copy of a path with a trailing slash, if needed

Synopsis

char *ap_make_dirstr(pool *p, const char *path, int n)

Makes a copy of path guaranteed to end with a slash. It will truncate the path at the nth slash. Returns a pointer to the copy, which was allocated in the pool p.