summaryrefslogtreecommitdiff
path: root/tables
diff options
context:
space:
mode:
authorgstein <gstein@13f79535-47bb-0310-9956-ffa450edef68>2001-01-11 00:13:23 +0000
committergstein <gstein@13f79535-47bb-0310-9956-ffa450edef68>2001-01-11 00:13:23 +0000
commit04c1cdef55baad493743c3d81fd26fc44215786f (patch)
tree117e7e2ed15836e73e17bdeb6ad5e05dd861beb7 /tables
parente43c5fa646668b90dd92f6e168e6f395bd2d7648 (diff)
downloadlibapr-04c1cdef55baad493743c3d81fd26fc44215786f.tar.gz
add an accessor to the number of key/value pairs in the hash table.
Submitted by: Bill Tutt <billtut@microsoft.com> Reviewed by: Greg Stein git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@61045 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'tables')
-rw-r--r--tables/apr_hash.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/tables/apr_hash.c b/tables/apr_hash.c
index f8ab43fa2..b451c1111 100644
--- a/tables/apr_hash.c
+++ b/tables/apr_hash.c
@@ -314,3 +314,8 @@ APR_DECLARE(void) apr_hash_set(apr_hash_t *ht,
}
/* else key not present and val==NULL */
}
+
+APR_DECLARE(void) apr_hash_count(apr_hash_t *ht, apr_size_t *count)
+{
+ *count = ht->count;
+}