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

Method find_size

ppdc/ppdc-source.cxx:255–266  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

253//
254
255ppdcMediaSize * // O - Size
256ppdcSource::find_size(const char *s) // I - Size name
257{
258 ppdcMediaSize *m; // Current media size
259
260
261 for (m = (ppdcMediaSize *)sizes->first(); m; m = (ppdcMediaSize *)sizes->next())
262 if (!_cups_strcasecmp(s, m->name->value))
263 return (m);
264
265 return (NULL);
266}
267
268
269//

Callers

nothing calls this directly

Calls 3

_cups_strcasecmpFunction · 0.85
firstMethod · 0.80
nextMethod · 0.80

Tested by

no test coverage detected