! * \brief boxaExtendArray() * * \param[in] boxa * \return 0 if OK; 1 on error * * * Notes: * (1) Reallocs with doubled size of ptr array. * */
| 660 | * </pre> |
| 661 | */ |
| 662 | l_int32 |
| 663 | boxaExtendArray(BOXA *boxa) |
| 664 | { |
| 665 | PROCNAME("boxaExtendArray"); |
| 666 | |
| 667 | if (!boxa) |
| 668 | return ERROR_INT("boxa not defined", procName, 1); |
| 669 | |
| 670 | return boxaExtendArrayToSize(boxa, 2 * boxa->nalloc); |
| 671 | } |
| 672 | |
| 673 | |
| 674 | /*! |
no test coverage detected