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

Function cupsArrayCurrent

cups/array.c:277–295  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

275 */
276
277void * /* O - Element */
278cupsArrayCurrent(cups_array_t *a) /* I - Array */
279{
280 /*
281 * Range check input...
282 */
283
284 if (!a)
285 return (NULL);
286
287 /*
288 * Return the current element...
289 */
290
291 if (a->current >= 0 && a->current < a->num_elements)
292 return (a->elements[a->current]);
293 else
294 return (NULL);
295}
296
297
298/*

Callers 7

cupsdWritePrintcapFunction · 0.85
cupsArrayFirstFunction · 0.85
cupsArrayIndexFunction · 0.85
cupsArrayLastFunction · 0.85
cupsArrayNextFunction · 0.85
cupsArrayPrevFunction · 0.85
mainFunction · 0.85

Calls

no outgoing calls

Tested by 1

mainFunction · 0.68