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

Function cupsArrayRestore

cups/array.c:943–959  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

941 */
942
943void * /* O - New current element */
944cupsArrayRestore(cups_array_t *a) /* I - Array */
945{
946 if (!a)
947 return (NULL);
948
949 if (a->num_saved <= 0)
950 return (NULL);
951
952 a->num_saved --;
953 a->current = a->saved[a->num_saved];
954
955 if (a->current >= 0 && a->current < a->num_elements)
956 return (a->elements[a->current]);
957 else
958 return (NULL);
959}
960
961
962/*

Callers 15

mime_find_filtersFunction · 0.85
find_fdFunction · 0.85
apple_init_profileFunction · 0.85
apple_register_profilesFunction · 0.85
cupsdCheckJobsFunction · 0.85
cupsdDeletePrinterFunction · 0.85
update_reasonsFunction · 0.85
mainFunction · 0.85
check_constraintsFunction · 0.85
check_caseFunction · 0.85
check_translationsFunction · 0.85
ppd_mark_optionFunction · 0.85

Calls

no outgoing calls

Tested by 4

check_constraintsFunction · 0.68
check_caseFunction · 0.68
check_translationsFunction · 0.68
mainFunction · 0.68