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

Function tokens_to_array

modules/cache/mod_cache_disk.c:321–333  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

319}
320
321static void tokens_to_array(apr_pool_t *p, const char *data,
322 apr_array_header_t *arr)
323{
324 char *token;
325
326 while ((token = ap_get_list_item(p, &data)) != NULL) {
327 *((const char **) apr_array_push(arr)) = token;
328 }
329
330 /* Sort it so that "Vary: A, B" and "Vary: B, A" are stored the same. */
331 qsort((void *) arr->elts, arr->nelts,
332 sizeof(char *), array_alphasort);
333}
334
335/*
336 * Hook and mod_cache callback functions

Callers 1

write_headersFunction · 0.70

Calls 1

ap_get_list_itemFunction · 0.85

Tested by

no test coverage detected