src/ptra.c
L_PTRAA *
ptraaCreate(l_int32  n)
{
L_PTRAA  *paa;

    PROCNAME("ptraaCreate");

    if (n <= 0)
        return (L_PTRAA *)ERROR_PTR("n must be > 0", procName, NULL);

    if ((paa = (L_PTRAA *)CALLOC(1, sizeof(L_PTRAA))) == NULL)
        return (L_PTRAA *)ERROR_PTR("paa not made", procName, NULL);
    if ((paa->ptra = (L_PTRA **)CALLOC(n, sizeof(L_PTRA *))) == NULL)
        return (L_PTRAA *)ERROR_PTR("ptr array not made", procName, NULL);

    paa->nalloc = n;
    return paa;
}
/*!
 *  ptraaCreate()
 *
 *      Input:  size of ptr array to be alloc'd
 *      Return: paa, or null on error
 *
 *  Notes:
 *      (1) The ptraa is generated with a fixed size, that can not change.
 *          The ptra can be generated and inserted randomly into this array.
 */
ptraaCreate()
Input:  size of ptr array to be alloc'd
Return: paa, or null on error

(1) The ptraa is generated with a fixed size, that can not change.
The ptra can be generated and inserted randomly into this array.
ptraaCreate () Input : size of ptr array to be alloc ' d Return : paa or null on error ( 1 ) The ptraa is generated with a fixed size that can not change . The ptra can be generated and inserted randomly into this array .
L_PTRAA *
ptraaCreate(l_int32  n)
{
L_PTRAA  *paa;
    PROCNAME("ptraaCreate");
    if (n <= 0)
        return (L_PTRAA *)ERROR_PTR("n must be > 0", procName, NULL);
    if ((paa = (L_PTRAA *)CALLOC(1, sizeof(L_PTRAA))) == NULL)
        return (L_PTRAA *)ERROR_PTR("paa not made", procName, NULL);
    if ((paa->ptra = (L_PTRA **)CALLOC(n, sizeof(L_PTRA *))) == NULL)
        return (L_PTRAA *)ERROR_PTR("ptr array not made", procName, NULL);
    paa->nalloc = n;
    return paa;
}
L_PTRAA * ptraaCreate ( l_int32 n ) { L_PTRAA * paa ; PROCNAME ( " " ) ; if ( n <= 0 ) return ( L_PTRAA * ) ERROR_PTR ( " " , procName , NULL ) ; if ( ( paa = ( L_PTRAA * ) CALLOC ( 1 , sizeof ( L_PTRAA ) ) ) == NULL ) return ( L_PTRAA * ) ERROR_PTR ( " " , procName , NULL ) ; if ( ( paa -> ptra = ( L_PTRA * * ) CALLOC ( n , sizeof ( L_PTRA * ) ) ) == NULL ) return ( L_PTRAA * ) ERROR_PTR ( " " , procName , NULL ) ; paa -> nalloc = n ; return paa ; }
ptraaCreate()
      Input:  size of ptr array to be alloc'd
      Return: paa, or null on error
ptraaCreate () Input : size of ptr array to be alloc ' d Return : paa or null on error