From 381aafb7fc92c131bf96c687f00281c57de0e9c8 Mon Sep 17 00:00:00 2001 From: laentropia Date: Thu, 14 May 2026 08:26:38 -0600 Subject: [PATCH] fix: updating arraylist sintaxis --- src/main.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main.c b/src/main.c index 3e2747f..a67d446 100644 --- a/src/main.c +++ b/src/main.c @@ -25,7 +25,8 @@ int main(void) { // no need to destroy if this is all the programm, // in any other case destroy IS needed for memory // leaks :) - ArrayList *arr = arraylist_init(ARR_SIZE, sizeof(int)); + ArrayList *arr; + arraylist_init(&arr, ARR_SIZE, sizeof(int)); if (arr == NULL) { puts("El arreglo no pudo ser inicializado.");