| 275 | */ |
| 276 | |
| 277 | void * /* O - Element */ |
| 278 | cupsArrayCurrent(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 | /* |
no outgoing calls