Answer the question
In order to leave comments, you need to log in
Answer the question
In order to leave comments, you need to log in
This is called the GNU/POSIX naming agreement .
The requirement that additional types defined in this section end in "_t" was prompted by the problem of name space pollution. It is difficult to define a type (where that type is not one defined by POSIX.1-2008) in one header file and use it in another without adding symbols to the name space of the program. To allow implementors to provide their own types, all conforming applications are required to avoid symbols ending in "_t", which permits the implementor to provide additional types. Because a major use of types is in the definition of structure members, which can (and in many cases must) be added to the structures defined in POSIX.1-2008, the need for additional types is compelling.
Actually, it means that wchar_t is a type name. This is only for the programmer, in the sense that it means nothing to the compiler.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question