From ed3c71373307909d20f0ea44adf06dc7e433bc6e Mon Sep 17 00:00:00 2001 From: dx Date: Fri, 22 May 2020 21:13:57 +0100 Subject: ~array_init now uses pointer to an array pointer This means that the pointer that I allocate can actually be used. --- Converter/includes/array.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Converter/includes/array.h') diff --git a/Converter/includes/array.h b/Converter/includes/array.h index 003b1fd..7f96e57 100644 --- a/Converter/includes/array.h +++ b/Converter/includes/array.h @@ -10,7 +10,7 @@ typedef struct size_t sz_used; } array_t; -void array_init(array_t *arr); +void array_init(array_t **arr); void array_append(array_t *arr, void *item); void *array_read(array_t *arr, int index); -- cgit v1.2.3-13-gbd6f