From 8a3c9639c9f8f1541309f22ab67bf17ba3d9623d Mon Sep 17 00:00:00 2001 From: Justin Erenkrantz Date: Mon, 2 Sep 2002 09:27:57 +0000 Subject: Add apr_array_pop() function to apr_array_header_t. git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@63848 13f79535-47bb-0310-9956-ffa450edef68 --- include/apr_tables.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'include/apr_tables.h') diff --git a/include/apr_tables.h b/include/apr_tables.h index 852a48ac3..1e5404002 100644 --- a/include/apr_tables.h +++ b/include/apr_tables.h @@ -160,6 +160,14 @@ APR_DECLARE(apr_array_header_t *) apr_array_make(apr_pool_t *p, */ APR_DECLARE(void *) apr_array_push(apr_array_header_t *arr); +/** + * Remove an element from an array + * @param arr The array to remove an element from. + * @return Location of the element in the array. + * @remark If there are no elements in the array, NULL is returned. + */ +APR_DECLARE(void *) apr_array_pop(apr_array_header_t *arr); + /** * Concatenate two arrays together * @param dst The destination array, and the one to go first in the combined -- cgit v1.2.1