An open API service indexing awesome lists of open source software.

https://github.com/monitio/the-c-programming-book

A rewritten version of The C Programming Book (2nd edition)'s code made to work with newer C compilers.
https://github.com/monitio/the-c-programming-book

book c c-book c-programming c-programming-book the-c-programming-language

Last synced: 10 months ago
JSON representation

A rewritten version of The C Programming Book (2nd edition)'s code made to work with newer C compilers.

Awesome Lists containing this project

README

          

# The `C programming` book rewritten







---

This is a collection of a bunch of code from:

[The C Programming Language (2nd Edition) book by Dennis Ritchie (Author) and Brian Kernighan (Author)](https://www.amazon.co.uk/C-Programming-Language-2nd/dp/0131103628/ref=sr_1_1_sspa?crid=YLR1VTK0A8WU&dib=eyJ2IjoiMSJ9.7MU6AwhWtIZGSokpR_0dhtXcC9pIfEMG5H2hH_VcSgqBF00MUHomNq-9tIkfV6tM5ycW2LIPdIB2guDsjEYOUAuroejUCm6zSN2InX0gH1IAtJ-ZZFkpE76nEMs7v4yq8-u0A1CXa1UbCWE4-xb-KHZH-rjreSoEHPNlfHV0WkocBlbmyHQ8zGL6g0qf2m0qhN7wtYtGilgYMiJLExkNdwWbh6DJkYCDR-x4cglOmf0.9gyj6qFdreqVwo9VyYMDxr8od9r1CNQTziWvaZDZUqQ&dib_tag=se&keywords=c+programming+book&qid=1740157325&sprefix=c+programming+book%2Caps%2C90&sr=8-1-spons&sp_csd=d2lkZ2V0TmFtZT1zcF9hdGY&psc=1)

that has been improved to work with newer C compilers such as [GCC](https://gcc.gnu.org/) or [clang](https://clang.llvm.org/).

Not all code will be put in [the chapters](/chapters/) as some are essentially just the same as what I have already put in there.
But comments will stay the same as listed in [the book](https://www.amazon.co.uk/C-Programming-Language-2nd/dp/0131103628/ref=sr_1_1_sspa?crid=YLR1VTK0A8WU&dib=eyJ2IjoiMSJ9.7MU6AwhWtIZGSokpR_0dhtXcC9pIfEMG5H2hH_VcSgqBF00MUHomNq-9tIkfV6tM5ycW2LIPdIB2guDsjEYOUAuroejUCm6zSN2InX0gH1IAtJ-ZZFkpE76nEMs7v4yq8-u0A1CXa1UbCWE4-xb-KHZH-rjreSoEHPNlfHV0WkocBlbmyHQ8zGL6g0qf2m0qhN7wtYtGilgYMiJLExkNdwWbh6DJkYCDR-x4cglOmf0.9gyj6qFdreqVwo9VyYMDxr8od9r1CNQTziWvaZDZUqQ&dib_tag=se&keywords=c+programming+book&qid=1740157325&sprefix=c+programming+book%2Caps%2C90&sr=8-1-spons&sp_csd=d2lkZ2V0TmFtZT1zcF9hdGY&psc=1).
The code listed will be put with an executable for Windows. Linux executables will be made soon.

I will compile everything using [GCC](https://gcc.gnu.org/). Other C compilers (such as the one they use in [the book](https://www.amazon.co.uk/C-Programming-Language-2nd/dp/0131103628/ref=sr_1_1_sspa?crid=YLR1VTK0A8WU&dib=eyJ2IjoiMSJ9.7MU6AwhWtIZGSokpR_0dhtXcC9pIfEMG5H2hH_VcSgqBF00MUHomNq-9tIkfV6tM5ycW2LIPdIB2guDsjEYOUAuroejUCm6zSN2InX0gH1IAtJ-ZZFkpE76nEMs7v4yq8-u0A1CXa1UbCWE4-xb-KHZH-rjreSoEHPNlfHV0WkocBlbmyHQ8zGL6g0qf2m0qhN7wtYtGilgYMiJLExkNdwWbh6DJkYCDR-x4cglOmf0.9gyj6qFdreqVwo9VyYMDxr8od9r1CNQTziWvaZDZUqQ&dib_tag=se&keywords=c+programming+book&qid=1740157325&sprefix=c+programming+book%2Caps%2C90&sr=8-1-spons&sp_csd=d2lkZ2V0TmFtZT1zcF9hdGY&psc=1)) won't be used.

If you don't have a copy of [the book](https://www.amazon.co.uk/C-Programming-Language-2nd/dp/0131103628/ref=sr_1_1_sspa?crid=YLR1VTK0A8WU&dib=eyJ2IjoiMSJ9.7MU6AwhWtIZGSokpR_0dhtXcC9pIfEMG5H2hH_VcSgqBF00MUHomNq-9tIkfV6tM5ycW2LIPdIB2guDsjEYOUAuroejUCm6zSN2InX0gH1IAtJ-ZZFkpE76nEMs7v4yq8-u0A1CXa1UbCWE4-xb-KHZH-rjreSoEHPNlfHV0WkocBlbmyHQ8zGL6g0qf2m0qhN7wtYtGilgYMiJLExkNdwWbh6DJkYCDR-x4cglOmf0.9gyj6qFdreqVwo9VyYMDxr8od9r1CNQTziWvaZDZUqQ&dib_tag=se&keywords=c+programming+book&qid=1740157325&sprefix=c+programming+book%2Caps%2C90&sr=8-1-spons&sp_csd=d2lkZ2V0TmFtZT1zcF9hdGY&psc=1) (which is recommended when reading through the code here) from somewhere like Amazon you can find an archived version of it in a [PDF document from here](https://archive.org/details/c-programming-language-2nd-edition).

## Progress: