I have this in my header
struct str_list_element_struct
{
char* string;
struct str_list_element_struct* next;
};
typedef struct str_list_element_scruct str_list_element;
typedef str_list_element* str_list;
and get this error when I try to sizeof it
str_list.c:21: error: invalid application of ‘sizeof’ to incomplete type ‘str_list_element’
How is my type “incomplete“?
You’ve misspelled “str_list_element_struct” as “str_list_element_scruct” in the typedef.