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

Function cgi_find_variable

cgi-bin/var.c:683–696  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

681 */
682
683static _cgi_var_t * /* O - Variable pointer or NULL */
684cgi_find_variable(const char *name) /* I - Name of variable */
685{
686 _cgi_var_t key; /* Search key */
687
688
689 if (form_count < 1 || name == NULL)
690 return (NULL);
691
692 key.name = (char *)name;
693
694 return ((_cgi_var_t *)bsearch(&key, form_vars, (size_t)form_count, sizeof(_cgi_var_t),
695 (int (*)(const void *, const void *))cgi_compare_variables));
696}
697
698
699/*

Callers 8

cgiGetArrayFunction · 0.85
cgiGetCheckboxFunction · 0.85
cgiGetSizeFunction · 0.85
cgiGetTextfieldFunction · 0.85
cgiGetVariableFunction · 0.85
cgiSetArrayFunction · 0.85
cgiSetSizeFunction · 0.85
cgiSetVariableFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected