What does the postfix “_t” stand for in C? [duplicate]

一个人想着一个人 提交于 2019-11-28 09:06:53

The t stands for "type" or "typedef." You'll see a lot of POSIX headers (and others) with time_t, size_t, and others. These which hold (not necessarily defined) specific bit-sizes based on the operating system and machine architecture.

based only on my own experience, the "_t" postfix means "data type". In other words, it's a datatype defined used typedef.

The "_t" suffix is a convention for data type names such as size_t or wchar_t. It's not used consistently.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!