43. The C Standard Library

C is a strongly typed, weakly checked language.

– D. M. Ritchie

Introduction

Files

The printf() Family

C-Style Strings

Memory

Date and Time

Etc.

Advice

43.1. Introduction

The standard library for the C language is with very minor modifications incorporated into the C++ standard library. The C standard library provides quite a few functions that have proven useful over the years in a wide variety of contexts – especially for relatively low-level programming.

There are more C standard-library functions than are presented here; see a good C textbook, such as “Kernighan and Ritchie” [Kernighan,1988] or the ISO C standard [C,2011], if you need to know more.

43.2. Files

The <cstdio> I/O system is based ...

Get The C++ Programming Language, 4th Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.