MCPcopy Create free account
hub / github.com/OpenPrinting/cups / httpFieldValue

Function httpFieldValue

cups/http.c:616–627  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

614 */
615
616http_field_t /* O - Field index */
617httpFieldValue(const char *name) /* I - String name */
618{
619 int i; /* Looping var */
620
621
622 for (i = 0; i < HTTP_FIELD_MAX; i ++)
623 if (!_cups_strcasecmp(name, http_fields[i]))
624 return ((http_field_t)i);
625
626 return (HTTP_FIELD_UNKNOWN);
627}
628
629
630/*

Callers 2

cupsdWriteClientFunction · 0.85
_httpUpdateFunction · 0.85

Calls 1

_cups_strcasecmpFunction · 0.85

Tested by

no test coverage detected