For example, C11 dictates that size_t
should be declared in the following header files:
- stddef.h
- stdio.h
- stdlib.h
- string.h
- time.h
- uchar.h
- wchar.h
When reading C11, I found there are many other data types declared in more than one standard header files.
Questions
- Let's say in the case of
size_t
. Why not just instddef.h
for simplicity? - Let's say a C compiler implements
size_t
in those header files. Are they guaranteed to have the same definition in those header files?