File: gdbm.info, Node: Count, Next: Store, Prev: Close, Up: Top 5 Number of Records ******************* -- gdbm interface: int gdbm_count (GDBM_FILE DBF, gdbm_count_t *PCOUNT) Counts the number of records in the database DBF. On success, stores it in the memory location pointed to by PCOUNT and returns 0. On error, sets 'gdbm_errno' (if relevant, also 'errno') and returns -1. -- gdbm interface: int gdbm_bucket_count (GDBM_FILE DBF, size_t *PCOUNT) Counts the number of buckets in the database DBF. On success, stores it in the memory location pointed to by PCOUNT and return 0. On error, sets 'gdbm_errno' (if relevant, also 'errno') and returns -1.