STDLIB(3)

πŸ“¦ version 11.0, in nixpkgs unstable

πŸ’– NAME πŸ’–

okay so bestie, this is STDLIB(3) from the Library Functions Manual, and the name is literally stdlib β€” standard library definitions. no cap, it's giving β€œthe header page you need to know” energy. 🫢

✨ SYNOPSIS ✨

#include <stdlib.h>

πŸŽ€ DESCRIPTION πŸŽ€

The <stdlib.h> header defines the following types and macros, and yes, we are listing every single one:

  1. NULL β€” an implementation-defined null pointer constant. πŸ’…
  2. size_t and wchar_t β€” integer types described in stddef(3). ✨
  3. div_t, ldiv_t, and lldiv_t β€” structures that are returned by the div(3), ldiv(3), and lldiv(3) functions, respectively. πŸŽ€
  4. RAND_MAX β€” a macro which expands to an integer constant that is the maximum value returned by the rand(3) function. πŸ”₯
  5. MB_CUR_MAX β€” an integer expression of type size_t whose value is the maximum number of bytes in a character specified by the current locale. 🌸
  6. EXIT_SUCCESS and EXIT_FAILURE β€” macros which expand to integer constants suitable for use as an argument to the exit(3) function. πŸ‘‘

The <stdlib.h> header also prototypes several important functions such as abort(3), atoi(3), bsearch(3), free(3), malloc(3), and strtol(3). iconic lineup, honestly. πŸ¦‹

πŸ¦‹ SEE ALSO πŸ¦‹

⭐ STANDARDS ⭐

As described here, the <stdlib.h> header conforms to ISO/IEC 9899:1999 (β€œISO C99”) and IEEE Std 1003.1-2001 (β€œPOSIX.1”). periodt. 🌈

πŸ‘‘ HISTORY πŸ‘‘

In the current form the <stdlib.h> header was introduced in NetBSD 0.8. πŸ’œ


mwah πŸ’– this page is from Debian, dated April 10, 2011, and it’s STDLIB(3) β€” byeeee πŸŽ€

πŸ“¦ where this page comes from