# C standard library **[C standard library](https://en.cppreference.com/w/c/header)** is the core set of headers and functions always linked into C programs, providing essential utilities like I/O (``), memory management (``), string handling (``), and math operations (``). Headers declare functions and constants; the library implementation lives in `libc.so` (dynamic) or `libc.a` (static). Modern C lacks advanced data structures (no maps, vectors, or trees), async/threading, and networking—you must implement these yourself or use external libraries. ## Example This example demonstrates basic C standard library usage with I/O and memory allocation. ```c // compile: gcc -o stdlib stdlib.c // run: ./stdlib // description: use standard library for I/O, memory, and string operations #include #include #include int main() { char *buffer = malloc(50); if (!buffer) { fprintf(stderr, "Memory allocation failed\n"); return EXIT_FAILURE; } strcpy(buffer, "Hello from stdlib"); printf("%s\n", buffer); free(buffer); return EXIT_SUCCESS; } ```