declare a struct instance in c code example
Example 1: instance for c in struct
struct listitem {
int val;
char * def;
struct listitem * next;
};
Example 2: instance for c in struct
typedef struct listitem listitem;
struct listitem {
int val;
char * def;
struct listitem * next;
};
typedef struct listitem listitem;