Name

ap_make_dirstr_prefix — copy part of a path

Synopsis

char *ap_make_dirstr_prefix(char *d, const char *s, int n)

Copy the first n path elements from s to d or the whole of s if there are less than n path elements. Note that a leading slash counts as a path element.