fix: updating arraylist sintaxis

This commit is contained in:
2026-05-14 08:26:38 -06:00
parent 8b0471639a
commit 381aafb7fc

View File

@@ -25,7 +25,8 @@ int main(void) {
// no need to destroy if this is all the programm, // no need to destroy if this is all the programm,
// in any other case destroy IS needed for memory // in any other case destroy IS needed for memory
// leaks :) // leaks :)
ArrayList *arr = arraylist_init(ARR_SIZE, sizeof(int)); ArrayList *arr;
arraylist_init(&arr, ARR_SIZE, sizeof(int));
if (arr == NULL) { if (arr == NULL) {
puts("El arreglo no pudo ser inicializado."); puts("El arreglo no pudo ser inicializado.");