All source code examples from The C Book, properly formatted (Linux kernel coding style). The book describes the ANSI C standard (C89 / C90).
The C Book was written by Mike Banahan, Declan Brady and Mark Doran. This version is based on the second edition. The whole book can be found on GitHub here. The latest PDF version of The C Book can be downloaded from https://github.com/wardvanwanrooij/thecbook/releases/latest.
The second edition of the book was printed in 1991 by Addison Wesley. The original nroff sources were converted to HTML and made available in 2003 by Mike Banahan. A few obvious mistakes and typos in C source code examples were fixed in 2024, based on information provided by Ross Bencina.
Permission is hereby granted for anyone to do anything that they want with this material—you may freely reprint it, redistribute it, amend it or do whatever you like with it provided that you include an acknowledgement of the original authorship and copyright in the form of a link to https://publications.gbdirect.co.uk/c_book/copyright.html. For more information please review the original license.