array.c
//initializes preallocated param ap for param size elements
initializes preallocated param ap for param size elements
initializes preallocated param ap for param size elements
void init_array(array_t* ap, int size) {
	ap->array = malloc(size * sizeof(int));
	WARN_EXIT_IF(!ap->array, "malloc failed");
	ap->length = 0;
	ap->capacity = size;
}
void init_array ( array_t * ap , int size ) { ap -> array = malloc ( size * sizeof ( int ) ) ; WARN_EXIT_IF ( ! ap -> array , " " ) ; ap -> length = 0 ; ap -> capacity = size ; }
initializes preallocated param ap for param size elements
initializes preallocated param ap for param size elements