fix: updating arraylist sintaxis
This commit is contained in:
@@ -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.");
|
||||
|
||||
Reference in New Issue
Block a user