summaryrefslogtreecommitdiff
path: root/tables
diff options
context:
space:
mode:
authorBrian Pane <brianp@apache.org>2002-07-13 18:16:33 +0000
committerBrian Pane <brianp@apache.org>2002-07-13 18:16:33 +0000
commitd4ccdc3eace25a0414c9b3c36a77b3b1440ed79c (patch)
tree217e77b795e210cb7a9a3a715b60b04cafdf841c /tables
parent1c5dad3778513568daa1d5ae37c4d35d32ab5f35 (diff)
downloadapr-d4ccdc3eace25a0414c9b3c36a77b3b1440ed79c.tar.gz
added apr_is_empty_array()
git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@63653 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'tables')
-rw-r--r--tables/apr_tables.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/tables/apr_tables.c b/tables/apr_tables.c
index 9f7a3bb58..6601a9168 100644
--- a/tables/apr_tables.c
+++ b/tables/apr_tables.c
@@ -109,6 +109,11 @@ static void make_array_core(apr_array_header_t *res, apr_pool_t *p,
res->nalloc = nelts; /* ...but this many allocated */
}
+APR_DECLARE(int) apr_is_empty_array(const apr_array_header_t *a)
+{
+ return ((a == NULL) || (a->nelts == 0));
+}
+
APR_DECLARE(apr_array_header_t *) apr_array_make(apr_pool_t *p,
int nelts, int elt_size)
{