#include #include struct symbol { int payload; struct symbol *next; }; void addSymbol(struct symbol **head, struct symbol *new) { *head = new; } int main(int argc, char *argv[]) { struct symbol *hashes[40]; struct symbol *mm = NULL; struct symbol *df = NULL; df = malloc(sizeof(struct symbol)); df->payload = 234; addSymbol(&hashes[9], df); printf("%d\n", hashes[9]->payload); return 0; }