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

Function ppd_is_installable

cups/ppd-conflicts.c:673–692  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

671 */
672
673static int /* O - 1 if installable, 0 if normal */
674ppd_is_installable(
675 ppd_group_t *installable, /* I - InstallableOptions group */
676 const char *name) /* I - Option name */
677{
678 if (installable)
679 {
680 int i; /* Looping var */
681 ppd_option_t *option; /* Current option */
682
683
684 for (i = installable->num_options, option = installable->options;
685 i > 0;
686 i --, option ++)
687 if (!_cups_strcasecmp(option->keyword, name))
688 return (1);
689 }
690
691 return (0);
692}
693
694
695/*

Callers 1

ppd_load_constraintsFunction · 0.85

Calls 1

_cups_strcasecmpFunction · 0.85

Tested by

no test coverage detected