#include #define SIZE 10 void alloc_int (int *to_alloc, size_t size) { to_alloc = malloc (size); } void free_int (int *to_free) { free (to_free); } int main () { int *foo [SIZE]; alloc_int (foo [0], SIZE); free_int (foo [0]); return 0; }