I want to create a vec of structures. This is my struct:
typedef struct item {
char *name;
int acc;
} *Item;
I tried:
Item vec = (Item) malloc(sizeof(Item)*max);
max is previously defined. I get this error: initializer element is not constant