man3tbl/TBLtotal

Table of Contents

Name

TBLtotal - tell total number of records in table

Description

TBLtotal returns the total number of records in the specified table.

This function is part of tblmngr.

Syntax

int TBLtotal(
   HEADER_TBL *HTpnt,

   int Tbl

   );

Arguments

HTpnt

Pointer to the HEADER_TBL.

Tbl

The table to check. See mem.h for a list of valid values to use.

Returns


-1 - no allocations allowed.
0 - allocation is by malloc()
>0 - The total number of free and allocated records in the table.

-

1 returned on error

See Also

tblmngr(3tbl)

Notes

This function seems to do more work than it needs to. Perhaps it should be looked at someday. In the meantime it’s harmless.

Manual page revision

$Id: TBLtotal.3,v 1.1 2002/04/07 19:37:39 kitchen Exp $


Table of Contents