Standard for typedef'ing

前端 未结 7 2043
清酒与你
清酒与你 2020-12-30 02:41

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         


        
7条回答
  •  轮回少年
    2020-12-30 03:14

    If you are working on a platform that follows POSIX standards you should be aware that any identifier ending in _t is reserved for POSIX defined types so it is not advisable to follow the same convention for your own types.

提交回复
热议问题