| 613 | */ |
| 614 | |
| 615 | int /* O - 0 on failure, 1 on success */ |
| 616 | cupsArrayInsert(cups_array_t *a, /* I - Array */ |
| 617 | void *e) /* I - Element */ |
| 618 | { |
| 619 | DEBUG_printf(("2cupsArrayInsert(a=%p, e=%p)", (void *)a, e)); |
| 620 | |
| 621 | /* |
| 622 | * Range check input... |
| 623 | */ |
| 624 | |
| 625 | if (!a || !e) |
| 626 | { |
| 627 | DEBUG_puts("3cupsArrayInsert: returning 0"); |
| 628 | return (0); |
| 629 | } |
| 630 | |
| 631 | /* |
| 632 | * Insert the element... |
| 633 | */ |
| 634 | |
| 635 | return (cups_array_add(a, e, 1)); |
| 636 | } |
| 637 | |
| 638 | |
| 639 | /* |
no test coverage detected