Name

ap_cfg_ getline — read a line from a configuration, stripping whitespace

Synopsis

int ap_cfg_ getline(char *s, int n, configfile_t *cfp)

Reads a line (up to n characters) from cfp into s, stripping leading and trailing whitespace and converting internal whitespace to single spaces. Continuation lines (indicated by a backslash immediately before the newline) are concatenated. Returns 0 normally; 1 if EOF has been reached.