MCPcopy Create free account
hub / github.com/apache/httpd / tokens_to_array

Function tokens_to_array

modules/cache/mod_cache_socache.c:341–352  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

339}
340
341static void tokens_to_array(apr_pool_t *p, const char *data,
342 apr_array_header_t *arr)
343{
344 char *token;
345
346 while ((token = ap_get_list_item(p, &data)) != NULL) {
347 *((const char **) apr_array_push(arr)) = token;
348 }
349
350 /* Sort it so that "Vary: A, B" and "Vary: B, A" are stored the same. */
351 qsort((void *) arr->elts, arr->nelts, sizeof(char *), array_alphasort);
352}
353
354/*
355 * Hook and mod_cache callback functions

Callers 1

store_headersFunction · 0.70

Calls 1

ap_get_list_itemFunction · 0.85

Tested by

no test coverage detected