> Am 24.07.2015 um 15:51 schrieb Ruediger Pluem <[email protected]>: >> >> +/* Something like this must be in APR, only I do not find it... */ >> +static int array_index(apr_array_header_t *array, const char *s) >> +{ >> + int i; >> + for (i = 0; i < array->nelts; i++) { >> + const char *p = APR_ARRAY_IDX(array, i, const char *); >> + if (!strcmp(p, s)) { >> + return i; >> + } >> + } >> + return -1; >> +} > > If not in APR it should probably be put into util.c and made ap_array_index. > Once in APR it could be converted into a wrapper macro around the APR > function.
Checked in as r1696264. //Stefan <green/>bytes GmbH Hafenweg 16, 48155 Münster, Germany Phone: +49 251 2807760. Amtsgericht Münster: HRB5782
