diff options
Diffstat (limited to 'doc/gdbm.texi')
-rw-r--r-- | doc/gdbm.texi | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/doc/gdbm.texi b/doc/gdbm.texi index 159a108..53c9782 100644 --- a/doc/gdbm.texi +++ b/doc/gdbm.texi | |||
@@ -232,6 +232,7 @@ int gdbm_export_to_file (GDBM_FILE dbf, FILE *fp); | |||
232 | int gdbm_import (GDBM_FILE, const char *, int); | 232 | int gdbm_import (GDBM_FILE, const char *, int); |
233 | int gdbm_import_from_file (GDBM_FILE dbf, FILE *fp, int flag); | 233 | int gdbm_import_from_file (GDBM_FILE dbf, FILE *fp, int flag); |
234 | int gdbm_count (GDBM_FILE dbf, gdbm_count_t *pcount); | 234 | int gdbm_count (GDBM_FILE dbf, gdbm_count_t *pcount); |
235 | int gdbm_bucket_count (GDBM_FILE dbf, size_t *pcount); | ||
235 | int gdbm_version_cmp (int const a[], int const b[]); | 236 | int gdbm_version_cmp (int const a[], int const b[]); |
236 | @end example | 237 | @end example |
237 | 238 | ||
@@ -394,6 +395,14 @@ stores it in the memory location pointed to by @var{pcount} and return | |||
394 | and returns -1. | 395 | and returns -1. |
395 | @end deftypefn | 396 | @end deftypefn |
396 | 397 | ||
398 | @deftypefn {gdbm interface} int gdbm_bucket_count (GDBM_FILE @var{dbf}, @ | ||
399 | size_t *@var{pcount}) | ||
400 | Counts number of buckets in the database @var{dbf}. On success, | ||
401 | stores it in the memory location pointed to by @var{pcount} and return | ||
402 | 0. On error, sets @code{gdbm_errno} (if relevant, also @code{errno}) | ||
403 | and returns -1. | ||
404 | @end deftypefn | ||
405 | |||
397 | @node Store | 406 | @node Store |
398 | @chapter Inserting and replacing records in the database. | 407 | @chapter Inserting and replacing records in the database. |
399 | @cindex storing records | 408 | @cindex storing records |