STDDEF(3)
πΈ NAME πΈ
okay so bestie, you're reading STDDEF(3) from the Library Functions Manual β the stddef page, aka standard type definitions. it's giving foundational header energy, and yes, we're gonna get through every single detail together. π
β¨
β¨ SYNOPSIS β¨
#include <stddef.h>
that's the include. short, iconic, no notes. π
π DESCRIPTION π
The <stddef.h> header defines the following types and macros, and you're gonna know all of them:
ptrdiff_tβ a signed integer type of the result of subtracting two pointers;size_tβ an unsigned integer type of the result of thesizeof()operator;wchar_tβ an integer type whose range of values can represent distinct wide-character codes for all members of the largest character set specified among the supported locales: the null character has the code value0, and each member of the character set has a code value equal to its value when used as the lone character in an integer character constant;NULLβ which expands to an implementation-defined null pointer constant; andoffsetof()β a macro that expands to an integer constant, as described inoffsetof(3).
Some of the described types and macros may appear also in other headers. lowkey they get around. π¦
π¦ SEE ALSO π¦
go give these pages a lil read, bestie:
π STANDARDS π
As described here, the <stddef.h> header conforms to ISO/IEC 9899:1999 (βISO C99β) and IEEE Std 1003.1-2001 (βPOSIX.1β). Some of the types and macros conform to earlier standards such as ANSI X3.159-1989 (βANSI C89β). history lesson but make it header lore. β
π HISTORY π
In the current form, the <stddef.h> header was introduced in NetBSD 0.8, the first official release of NetBSD. Some definitions such as NULL were first introduced already in the <nsys/param.h> header of Version 4 AT&T UNIX. literally ancient. π
Mwah π β this cutie comes from Debian, dated April 10, 2011, and it's the STDDEF(3) page. byeeee π«Άβ¨
π¦ where this page comes from
- nixpkgs unstable: netbsd-source 11.0
- Copyright (c) 2010 The NetBSD Foundation, Inc
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms