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
size_t
is defined in both <stddef.h>
and <stdlib.h>
From C99 draft:
7.17 Common definitions <stddef.h>
The following types and macros are defined in the standard header <stddef.h>
. Some
are also defined in other headers, as noted in their respective subclauses.
The types are [-snip-]
size_t
which is the unsigned integer type of the result of the sizeof
operator; [-snip-]
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With