| 2495 | */ |
| 2496 | |
| 2497 | const char * /* O - PPD OutputBin or NULL */ |
| 2498 | _ppdCacheGetOutputBin( |
| 2499 | _ppd_cache_t *pc, /* I - PPD cache and mapping data */ |
| 2500 | const char *output_bin) /* I - Keyword string */ |
| 2501 | { |
| 2502 | int i; /* Looping var */ |
| 2503 | |
| 2504 | |
| 2505 | /* |
| 2506 | * Range check input... |
| 2507 | */ |
| 2508 | |
| 2509 | if (!pc || !output_bin) |
| 2510 | return (NULL); |
| 2511 | |
| 2512 | /* |
| 2513 | * Look up the OutputBin string... |
| 2514 | */ |
| 2515 | |
| 2516 | |
| 2517 | for (i = 0; i < pc->num_bins; i ++) |
| 2518 | if (!_cups_strcasecmp(output_bin, pc->bins[i].pwg) || !_cups_strcasecmp(output_bin, pc->bins[i].ppd)) |
| 2519 | return (pc->bins[i].ppd); |
| 2520 | |
| 2521 | return (NULL); |
| 2522 | } |
| 2523 | |
| 2524 | |
| 2525 | /* |
no test coverage detected