ap_scan_script_header_err_strs() accepts additional const char* args... * each is treated as one or more header lines, and the first non-header * character is returned to **arg, **data. (The first optional arg is * counted as 0.) */
| 888 | * counted as 0.) |
| 889 | */ |
| 890 | AP_DECLARE_NONSTD(int) ap_scan_script_header_err_strs_ex(request_rec *r, |
| 891 | char *buffer, |
| 892 | int module_index, |
| 893 | const char **termch, |
| 894 | int *termarg, ...) |
| 895 | { |
| 896 | struct vastrs strs; |
| 897 | int res; |
| 898 | |
| 899 | va_start(strs.args, termarg); |
| 900 | strs.arg = 0; |
| 901 | strs.curpos = va_arg(strs.args, char*); |
| 902 | res = ap_scan_script_header_err_core_ex(r, buffer, getsfunc_STRING, |
| 903 | (void *) &strs, module_index); |
| 904 | if (termch) |
| 905 | *termch = strs.curpos; |
| 906 | if (termarg) |
| 907 | *termarg = strs.arg; |
| 908 | va_end(strs.args); |
| 909 | return res; |
| 910 | } |
| 911 | |
| 912 | AP_DECLARE_NONSTD(int) ap_scan_script_header_err_strs(request_rec *r, |
| 913 | char *buffer, |
no test coverage detected