| 671 | */ |
| 672 | |
| 673 | static int /* O - 1 if installable, 0 if normal */ |
| 674 | ppd_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 | /* |
no test coverage detected