Namespaces
Variants
Views
Actions

Utility library

From cppreference.com
< c
Revision as of 01:56, 24 June 2021 by Space Mission (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

C includes a variety of utility libraries. These libraries can be broadly divided into two groups:

  • language support libraries, and
  • general-purpose libraries.

Contents

[edit] Language support

Language support libraries provide functions that interact closely with language features and support common language idioms.

[edit] Type support

Basic types (e.g. size_t, NULL)

[edit] Dynamic memory management

(e.g. malloc)

[edit] Error handling

Assertions (e.g. assert)

[edit] Variadic functions

Support for functions that take an arbitrary number of parameters (via e.g. va_start, va_arg, va_end)


[edit] General-purpose utilities

[edit] Program utilities

Termination (e.g. abort, atexit), environment (e.g. system), signals (e.g. raise)

[edit] Date and time

Time tracking (e.g. time, clock)

[edit] See also

C++ documentation for Utility library