#include "header.h" #include #include void* new_atype(int n) { struct Atype *x = malloc(sizeof(struct Atype)); x->val = n; return x; } // pointer to first element of array void handle_array(void *p, int n) { struct Atype *ptr = (struct Atype *)p; for (int i=0; ival); } } void destroy_atype(void *p) { free(p); }