C standard library
The C standard library is the collection of functions, types, macros, and headers specified by the C language standard for use by C programs.
Modern C
The C standard library is the standardized collection of library functions, macros, and types provided for C programs.
- How it is used
- Provides portable interfaces for mathematics, input/output, strings, time, runtime access, and program termination.
- How deep it goes
- Defines library areas, headers, interface types, error strategies, safety interfaces, and compile-time platform checks.
- Examples
- Uses printf, puts, strtod, snprintf, getenv, and standard headers to illustrate library interfaces and functional groupings.
- What you can do after
- Apply it via standard headers and library functions for portable numerical, textual, temporal, environmental, and input/output operations.
Code Like a Pro in Rust
libc is a Rust crate providing bindings and platform-specific definitions for the C standard library and C-compatible types.
- How it is used
- Supports Rust FFI declarations, C-compatible data layouts, native-library linking, and Cargo-driven compilation of C code.
- How deep it goes
- Explains type mapping, repr(C), unsafe calls, wrappers, bindgen, and build scripts without developing FFI internals broadly.
- Examples
- Uses zlib compression, gzip-file reading, and a Cargo-built Hello World C function as concrete interoperation examples.
- What you can do after
- Build it from scratch by declaring, linking, wrapping, and testing small C interfaces from Rust.
Read how Code Like a Pro in Rust explains C standard library →
Modern C, Third Edition
A C library function is a function provided by the standardized C library for use by C programs.
- How it is used
- Supplies portable interfaces for mathematics, I/O, strings, time, runtime environments, and program termination.
- How deep it goes
- Surveys library groups and header interfaces, without descending into individual function implementations.
- Examples
- Uses printf, puts, strtod, standard headers, text and byte I/O, string processing, time handling, and environment variables.
- What you can do after
- Apply it via standard headers and library functions when implementing common C programming tasks.
Read how Modern C, Third Edition explains C standard library →
Also covered in
What to know first
- C++C++ is a statically typed, general-purpose programming language that supports procedural, object-oriented, generic, and low-level systems programming.
Related concepts
- header fileuses · A header file is a source file containing declarations, macros, or other shared interface information intended for inclusion in other source files during compilation.
- printfhas part · printf is a formatted-output API that uses a format specification and supplied values to produce text, either returning it or writing it to an output destination.
- mallocproduces · malloc is a C standard-library function that allocates a specified number of bytes of uninitialized storage and returns a pointer to it or a null pointer if allocation fails.
Questions about C standard library
What is C standard library?
The C standard library is the collection of functions, types, macros, and headers specified by the C language standard for use by C programs.
Which Manning books explain C standard library?
Modern C, Code Like a Pro in Rust and Modern C, Third Edition.
What should I know before learning C standard library?
Manning books that teach C standard library usually introduce C++ first.
What are the parts of C standard library?
C standard library includes printf.
What is C standard library also called?
C standard library is also called C library or libc.
These guides are generated from the text of Manning books by Manning's knowledge graph and link to the sections they draw on. The full books are available on liveBook and at manning.com.


