Overview
The <stddef.h> header defines a few standard typedefs:
ptrdiff_t: the signed integer type of the result of subtracting two pointers.size_t: the unsigned integer type of the result of thesizeofoperator.
The standard often uses typedefs ending with _t.
Bibliography
- “ISO: Programming Languages - C17,” April 2017, https://www.open-std.org/jtc1/sc22/wg14/www/abq/c17_updated_proposed_fdis.pdf.
- Jens Gustedt, Modern C (Shelter Island, NY: Manning Publications Co, 2020).
- Van der Linden, Peter. Expert C Programming: Deep C Secrets. Programming Languages / C. Mountain View, Cal.: SunSoft Pr, 1994.