array.c
//frees array in struct a; sets length and capacity to 0
frees array in struct a; sets length and capacity to 0
frees array in struct a ; sets length and capacity to 0
void clear_array(array_t* ap) {
	free(ap->array);
	ap->length = 0;
	ap->capacity = 0;
}
void clear_array ( array_t * ap ) { free ( ap -> array ) ; ap -> length = 0 ; ap -> capacity = 0 ; }
frees array in struct a; sets length and capacity to 0
frees array in struct a ; sets length and capacity to 0