ArrayList/ArrayList.c
int freeArrayList(ArrayList* list) {
    if (list == NULL)
        return -1;
    
    free(list->elements);
    free(list);
    return 0;
}
/**
* Removes the ArrayList struct from memory, does not free the actual pointers themselves, that's up to the programmer to manage, returns -1 on error
*/
Removes the ArrayList struct from memory, does not free the actual pointers themselves, that's up to the programmer to manage, returns -1 on error
Removes the ArrayList struct from memory does not free the actual pointers themselves that ' s up to the programmer to manage returns - 1 on error
int freeArrayList(ArrayList* list) {
    if (list == NULL)
        return -1;
    free(list->elements);
    free(list);
    return 0;
}
int freeArrayList ( ArrayList * list ) { if ( list == NULL ) return -1 ; free ( list -> elements ) ; free ( list ) ; return 0 ; }
Removes the ArrayList struct from memory, does not free the actual pointers themselves, that's up to the programmer to manage, returns -1 on error
Removes the ArrayList struct from memory does not free the actual pointers themselves that ' s up to the programmer to manage returns - 1 on error