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,
|
// 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.");
|
||||||
|
|||||||
Reference in New Issue
Block a user