i have encountered these “X_t” types many times in c programs,what does they really mean?where is the location of these definition?
i have encountered these X_t types many times in c programs,what does they really
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
The
_tsuffix means “type”; it’s not a rule that you have to use it, it’s just a convention followed by a lot of standard types from the standard libraries. They’re usually defined in the header files that use them, or sometimes in header files included by those headers.size_tis defined in<stddef.h>, andtime_tis defined in<time.h>.key_tis not a standard C type, so it’s probably defined in the library header for whatever library it’s used in.If you want to know exactly which header file a definition came from, you can run the preprocessor:
The preprocessor output
file.iwill show you all of the nested include files. You can then search it for the definition, then scroll upwards until you find the comment that indicates which header file it came from.