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

Function cupsArrayLast

cups/array.c:645–662  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

643 */
644
645void * /* O - Last element or @code NULL@ if the array is empty */
646cupsArrayLast(cups_array_t *a) /* I - Array */
647{
648 /*
649 * Range check input...
650 */
651
652 if (!a)
653 return (NULL);
654
655 /*
656 * Return the last element...
657 */
658
659 a->current = a->num_elements - 1;
660
661 return (cupsArrayCurrent(a));
662}
663
664
665/*

Callers 8

cupsdDoSelectFunction · 0.85
exec_filtersFunction · 0.85
cupsdContinueJobFunction · 0.85
dump_job_historyFunction · 0.85
copy_dscFunction · 0.85
copy_pageFunction · 0.85
save_rssFunction · 0.85
mainFunction · 0.85

Calls 1

cupsArrayCurrentFunction · 0.85

Tested by 1

mainFunction · 0.68