typedef 别名

1. 完整例子

C
1typedef unsigned int u32;
2typedef struct Point {
3 int x, y;
4} Point_t;
5 
6Point_t p = {1, 2};
7u32 mask = 0xFFu;

2. 好处