“warning: useless storage class specifier in empty declaration” in struct

I’m not sure, but try like that :

typedef struct item {
  char *text;
  int count;
  struct item *next;
}item;

Leave a Comment