/* Checks the argtable array for NULL entries and returns 1 if any are found, zero otherwise.  */
int arg_nullcheck(void **argtable)
/* Checks the argtable array for NULL entries and returns 1 if any are found, zero otherwise.  */
int arg_nullcheck(void **argtable)
{
    struct arg_hdr * *table = (struct arg_hdr * *)argtable;
    int tabindex;
    if (!table)
        return 1;
    tabindex = 0;
    do
    {
        if (!table[tabindex])
            return 1;
    } while(!(table[tabindex++]->flag & ARG_TERMINATOR));
    return 0;
}