MCPcopy Index your code
hub / github.com/apache/httpd / ap_array_str_index

Function ap_array_str_index

server/util.c:3428–3444  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3426}
3427
3428AP_DECLARE(int) ap_array_str_index(const apr_array_header_t *array,
3429 const char *s,
3430 int start)
3431{
3432 if (start >= 0) {
3433 int i;
3434
3435 for (i = start; i < array->nelts; i++) {
3436 const char *p = APR_ARRAY_IDX(array, i, const char *);
3437 if (!strcmp(p, s)) {
3438 return i;
3439 }
3440 }
3441 }
3442
3443 return -1;
3444}
3445
3446AP_DECLARE(int) ap_array_str_contains(const apr_array_header_t *array,
3447 const char *s)

Callers 2

protocol_cmpFunction · 0.85
ap_array_str_containsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected