Is size_t only in C++ standard or C standard as well?
I cannot find a C header in the “/usr/include” tree that defines size_t.
If it is not in the C std, is GCC just doing some magic to make things work?
Thanks,
Chenz
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.
From C99 draft:
7.17 Common definitions
<stddef.h>The following types and macros are defined in the standard header
<stddef.h>. Someare also defined in other headers, as noted in their respective subclauses.
The types are [-snip-]
which is the unsigned integer type of the result of the
sizeofoperator; [-snip-]