summaryrefslogtreecommitdiff
path: root/array.c
diff options
context:
space:
mode:
Diffstat (limited to 'array.c')
-rw-r--r--array.c51
1 files changed, 0 insertions, 51 deletions
diff --git a/array.c b/array.c
index f8341c0..df5a293 100644
--- a/array.c
+++ b/array.c
@@ -241,57 +241,6 @@ nul_garray_len (const nul_ptr_t array)
return array_len (array, &arr_t_magic);
}
-/* Pointer arrays. The idiomatic way to iterate through such an array is:
- *
- * void **p;
- *
- * for (p = array; *p; ++p)
- * {
- * my_type_t *my = *p;
- *
- * ...;
- * }
- *
- * They are always nul terminated. If there are embedded nulls in the array, then
- * this should be used instead:
- *
- * int i;
- *
- * for (i = 0; i < nul_parr_len (array); ++i)
- * {
- * my_type_t *my = array[i];
- *
- * ...;
- * }
- *
- */
-
-static const int parr_t_magic;
-
-void **
-nul_ptr_array_new (void)
-{
- return array_new (sizeof (void *), &parr_t_magic, 0);
-}
-
-void **
-nul_ptr_array_append (void **arr, nul_ptr_t data)
-{
- return array_append (arr, &parr_t_magic, &data);
-}
-
-void
-nul_ptr_array_free (void **arr)
-{
- array_free (arr, &parr_t_magic);
-}
-
-gsize
-nul_ptr_array_len (const nul_ptr_t *arr)
-{
- return array_len (arr, &parr_t_magic);
-}
-
/*
* Strings
*/