开发者

Meaning of _t postfix of sigset_t, time_t [duplicate]

开发者 https://www.devze.com 2023-03-21 22:21 出处:网络
This question already has answers here: Closed 11 years ago. Po开发者_高级运维ssible Duplicate: What does a type followed by _t (underscore-t) represent?
This question already has answers here: Closed 11 years ago.

Po开发者_高级运维ssible Duplicate:

What does a type followed by _t (underscore-t) represent?

I have seen many data structures in Linux environment have post-fix of '_t'.

Is there a specific meaning for it?


It's an abbreviation for "type".


The 't' stands for 'type'. POSIX and possibly also C99 reserve all names ending in '_t' for implementation-defined typedefs. Despite this, many libraries use such names for their own user-exposed types (I suppose such libraries could be considered part of the implementation, if you wish to look at it that way).

0

精彩评论

暂无评论...
验证码 换一张
取 消