gcc 4.4.4 c89
I am just wondering is there any standard that should be followed when creating types.
for example:
typedef struct date
{
} dat
Much of this comes down to personal preference, with the key being to be consistent (or if you have a company convention, use that). The following article has some naming guides:
http://www.montefiore.ulg.ac.be/~piater/Cours/Coding-Style/
Note that it switches the '_t' portion:
typedef struct node_t {
void *content;
struct node_t *next;
} Node;
typedef enum season_t { SPRING, SUMMER, FALL, WINTER } Season;
There was an earlier discussion on C naming conventions here:
What are the most common naming conventions in C?