Apache 1.3 API Documentation

Routine ap_cfg_getline

Definition:

int ap_cfg_getline(char *buf, size_t bufsize, configfile_t *cfp);
     

Usage example:

while (! ap_cfg_getline(l, MAX_STRING_LEN, cmd->config_file)) {
    /* Do something with the line read into l */
}
     

Reads a line from a file, stripping whitespace. Reads up to bufsize characters from cfp into buf, converting any whitespace encountered to single spaces.

Returns 0 on success, 1 if EOF encountered.

See also:
ap_cfg_closefile, ap_cfg_getc

Previous: ap_cfg_getc Next: ap_chdir_file

Table of Contents (Routines, Structures, Data Cells, Constants)