liveBook · Manning

C standard library

The C standard library is the standardized collection of functions, macros, types, and related facilities provided for C programs.

How 3 Manning books explain it

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.

Read how Modern C explains C standard library →

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 →

Related concepts

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.