ArrayList/ArrayList.c
int addArrayListElement(ArrayList* list, void* data) {
    if (list == NULL)
        return -1;
    
    if (list->size == list->capacity)
        expandArrayList(list);
    list->elements[list->size++] = data;
    return 0;
}
/**
* Appends an item onto the end of the list, returns -1 on error
*/
Appends an item onto the end of the list, returns -1 on error
Appends an item onto the end of the list returns - 1 on error
int addArrayListElement(ArrayList* list, void* data) {
    if (list == NULL)
        return -1;
    if (list->size == list->capacity)
        expandArrayList(list);
    list->elements[list->size++] = data;
    return 0;
}
int addArrayListElement ( ArrayList * list , void * data ) { if ( list == NULL ) return -1 ; if ( list -> size == list -> capacity ) expandArrayList ( list ) ; list -> elements [ list -> size ++ ] = data ; return 0 ; }
Appends an item onto the end of the list, returns -1 on error
Appends an item onto the end of the list returns - 1 on error