summaryrefslogtreecommitdiffabout
path: root/doc/gdbm.texi
authorSergey Poznyakoff <gray@gnu.org>2020-03-15 15:32:42 (GMT)
committer Sergey Poznyakoff <gray@gnu.org>2020-03-15 15:32:42 (GMT)
commit02bc2dc9bee96c0e7d93d23c6f0b7a24d0e17566 (patch) (side-by-side diff)
tree61071105561260e4b08a8e3faee5f8a07645fc79 /doc/gdbm.texi
parent1f94a81a9f3a9955ca74dff07b7909595a850485 (diff)
downloadgdbm-newcache.tar.gz
gdbm-newcache.tar.bz2
Implement the gdbm_bucket_count function.newcache
* src/gdbmcount.c (gdbm_bucket_count): New function. * src/gdbm.h.in (gdbm_bucket_count): New proto. * doc/gdbm.texi: Document gdbm_bucket_count. * src/gdbmtool.c (bucket_count): Reimplement via gdbm_bucket_count.
Diffstat (limited to 'doc/gdbm.texi') (more/less context) (show whitespace changes)
-rw-r--r--doc/gdbm.texi9
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);
int gdbm_import (GDBM_FILE, const char *, int);
int gdbm_import_from_file (GDBM_FILE dbf, FILE *fp, int flag);
int gdbm_count (GDBM_FILE dbf, gdbm_count_t *pcount);
+int gdbm_bucket_count (GDBM_FILE dbf, size_t *pcount);
int gdbm_version_cmp (int const a[], int const b[]);
@end example
@@ -394,6 +395,14 @@ stores it in the memory location pointed to by @var{pcount} and return
and returns -1.
@end deftypefn
+@deftypefn {gdbm interface} int gdbm_bucket_count (GDBM_FILE @var{dbf}, @
+ size_t *@var{pcount})
+Counts number of buckets in the database @var{dbf}. On success,
+stores it in the memory location pointed to by @var{pcount} and return
+0. On error, sets @code{gdbm_errno} (if relevant, also @code{errno})
+and returns -1.
+@end deftypefn
+
@node Store
@chapter Inserting and replacing records in the database.
@cindex storing records

Return to:

Send suggestions and report system problems to the System administrator.