@Binkle Crashes with SIGABRT
@Binkle That's a typo
@Binkle On malloc
@ademan @Binkle Sorry, no, it's a school project, but I think I found the issue.
I'm getting the wrong sizeof because I'm stupid and typed in the wrong struct.
void symtable_init(symtable_t **table){
(*table) = (symtable_t *)malloc(sizeof (symtable_item_t));
for(int i = 0; i < TABLE_SIZE; i++){
(**table)[i] = NULL;
}
}
@matrix @Binkle I thinnk he’s looking for
printf("%d\n", sizeof(Token_t));
Which is a better question than mine tbh