I have a source file where a typedef struct is defined:
typedef struct node {
char *key;
char *value;
struct node *next;
} *Node;
You can use:
typedef struct node * Node;
But I would advise against hiding the pointer in type declaration. It is more informative to have that information in variable declaration.
module.c:
#include "module.h"
struct node {
char *key;
char *value;
struct node *next;
};
module.h:
typedef struct node Node;
variable declaration for pointer somewhere:
#include "module.h"
Node * myNode; // We don't need to know the whole type when declaring pointer