I want to avoid having to write struct before every time I create a new struct variable, so I'm typedefing it.
The following doesn't work:
typedef struct {
    int data;
    Node *next;
} Node;
This does though:
struct Node {  
  int date; 
  struct Node *next;  
};
How do I use a typedef struct in C? I keep getting this error with the above one:
error: unknown type name 'Node'
            Node *next;
 
    