{"id":28402315,"url":"https://github.com/monitio/the-c-programming-book","last_synced_at":"2025-08-08T05:43:43.321Z","repository":{"id":278839026,"uuid":"936939242","full_name":"monitio/the-c-programming-book","owner":"monitio","description":"A rewritten version of The C Programming Book (2nd edition)'s code made to work with newer C compilers.","archived":false,"fork":false,"pushed_at":"2025-03-01T01:25:49.000Z","size":111,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-06-26T16:45:03.471Z","etag":null,"topics":["book","c","c-book","c-programming","c-programming-book","the-c-programming-language"],"latest_commit_sha":null,"homepage":null,"language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/monitio.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-02-22T00:58:07.000Z","updated_at":"2025-03-01T01:31:09.000Z","dependencies_parsed_at":null,"dependency_job_id":"53e15f55-57a2-4f9c-baf0-39cb507c0973","html_url":"https://github.com/monitio/the-c-programming-book","commit_stats":null,"previous_names":["monitio/the-c-programming-book"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/monitio/the-c-programming-book","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/monitio%2Fthe-c-programming-book","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/monitio%2Fthe-c-programming-book/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/monitio%2Fthe-c-programming-book/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/monitio%2Fthe-c-programming-book/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/monitio","download_url":"https://codeload.github.com/monitio/the-c-programming-book/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/monitio%2Fthe-c-programming-book/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":269372641,"owners_count":24406273,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-08-08T02:00:09.200Z","response_time":72,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["book","c","c-book","c-programming","c-programming-book","the-c-programming-language"],"created_at":"2025-06-01T15:10:11.444Z","updated_at":"2025-08-08T05:43:43.305Z","avatar_url":"https://github.com/monitio.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# The `C programming` book rewritten\n\n\u003cdiv align=\"left\" id=\"badges\"\u003e\n\n  \u003ca href=\"https://www.amazon.com/C-Programming-Language-2nd/dp/0131103628/ref=sr_1_1_sspa?crid=YLR1VTK0A8WU\u0026dib=eyJ2IjoiMSJ9.7MU6AwhWtIZGSokpR_0dhtXcC9pIfEMG5H2hH_VcSgqBF00MUHomNq-9tIkfV6tM5ycW2LIPdIB2guDsjEYOUAuroejUCm6zSN2InX0gH1IAtJ-ZZFkpE76nEMs7v4yq8-u0A1CXa1UbCWE4-xb-KHZH-rjreSoEHPNlfHV0WkocBlbmyHQ8zGL6g0qf2m0qhN7wtYtGilgYMiJLExkNdwWbh6DJkYCDR-x4cglOmf0.9gyj6qFdreqVwo9VyYMDxr8od9r1CNQTziWvaZDZUqQ\u0026dib_tag=se\u0026keywords=c+programming+book\u0026qid=1740157325\u0026sprefix=c+programming+book,aps,90\u0026sr=8-1-spons\u0026sp_csd=d2lkZ2V0TmFtZT1zcF9hdGY\u0026psc=1\"\u003e\n    \u003cimg src=\"https://custom-icon-badges.demolab.com/badge/Programming-Book-blue?style=for-the-badge\u0026logo=c\u0026logoColor=white\" /\u003e\n  \u003c/a\u003e\n  \u003ca href=\"#progress\"\u003e\n    \u003cimg src=\"https://custom-icon-badges.demolab.com/badge/percentage_done-13.03-green?style=for-the-badge\u0026logo=graph\u0026logoColor=white\" /\u003e\n  \u003c/a\u003e\n\u003c/div\u003e\n\n---\n\nThis is a collection of a bunch of code from:\n\n[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\u0026dib=eyJ2IjoiMSJ9.7MU6AwhWtIZGSokpR_0dhtXcC9pIfEMG5H2hH_VcSgqBF00MUHomNq-9tIkfV6tM5ycW2LIPdIB2guDsjEYOUAuroejUCm6zSN2InX0gH1IAtJ-ZZFkpE76nEMs7v4yq8-u0A1CXa1UbCWE4-xb-KHZH-rjreSoEHPNlfHV0WkocBlbmyHQ8zGL6g0qf2m0qhN7wtYtGilgYMiJLExkNdwWbh6DJkYCDR-x4cglOmf0.9gyj6qFdreqVwo9VyYMDxr8od9r1CNQTziWvaZDZUqQ\u0026dib_tag=se\u0026keywords=c+programming+book\u0026qid=1740157325\u0026sprefix=c+programming+book%2Caps%2C90\u0026sr=8-1-spons\u0026sp_csd=d2lkZ2V0TmFtZT1zcF9hdGY\u0026psc=1)\n\nthat has been improved to work with newer C compilers such as [GCC](https://gcc.gnu.org/) or [clang](https://clang.llvm.org/).\n\nNot all code will be put in [the chapters](/chapters/) as some are essentially just the same as what I have already put in there.\nBut 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\u0026dib=eyJ2IjoiMSJ9.7MU6AwhWtIZGSokpR_0dhtXcC9pIfEMG5H2hH_VcSgqBF00MUHomNq-9tIkfV6tM5ycW2LIPdIB2guDsjEYOUAuroejUCm6zSN2InX0gH1IAtJ-ZZFkpE76nEMs7v4yq8-u0A1CXa1UbCWE4-xb-KHZH-rjreSoEHPNlfHV0WkocBlbmyHQ8zGL6g0qf2m0qhN7wtYtGilgYMiJLExkNdwWbh6DJkYCDR-x4cglOmf0.9gyj6qFdreqVwo9VyYMDxr8od9r1CNQTziWvaZDZUqQ\u0026dib_tag=se\u0026keywords=c+programming+book\u0026qid=1740157325\u0026sprefix=c+programming+book%2Caps%2C90\u0026sr=8-1-spons\u0026sp_csd=d2lkZ2V0TmFtZT1zcF9hdGY\u0026psc=1).\nThe code listed will be put with an executable for Windows. Linux executables will be made soon.\n\nI 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\u0026dib=eyJ2IjoiMSJ9.7MU6AwhWtIZGSokpR_0dhtXcC9pIfEMG5H2hH_VcSgqBF00MUHomNq-9tIkfV6tM5ycW2LIPdIB2guDsjEYOUAuroejUCm6zSN2InX0gH1IAtJ-ZZFkpE76nEMs7v4yq8-u0A1CXa1UbCWE4-xb-KHZH-rjreSoEHPNlfHV0WkocBlbmyHQ8zGL6g0qf2m0qhN7wtYtGilgYMiJLExkNdwWbh6DJkYCDR-x4cglOmf0.9gyj6qFdreqVwo9VyYMDxr8od9r1CNQTziWvaZDZUqQ\u0026dib_tag=se\u0026keywords=c+programming+book\u0026qid=1740157325\u0026sprefix=c+programming+book%2Caps%2C90\u0026sr=8-1-spons\u0026sp_csd=d2lkZ2V0TmFtZT1zcF9hdGY\u0026psc=1)) won't be used.\n\nIf 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\u0026dib=eyJ2IjoiMSJ9.7MU6AwhWtIZGSokpR_0dhtXcC9pIfEMG5H2hH_VcSgqBF00MUHomNq-9tIkfV6tM5ycW2LIPdIB2guDsjEYOUAuroejUCm6zSN2InX0gH1IAtJ-ZZFkpE76nEMs7v4yq8-u0A1CXa1UbCWE4-xb-KHZH-rjreSoEHPNlfHV0WkocBlbmyHQ8zGL6g0qf2m0qhN7wtYtGilgYMiJLExkNdwWbh6DJkYCDR-x4cglOmf0.9gyj6qFdreqVwo9VyYMDxr8od9r1CNQTziWvaZDZUqQ\u0026dib_tag=se\u0026keywords=c+programming+book\u0026qid=1740157325\u0026sprefix=c+programming+book%2Caps%2C90\u0026sr=8-1-spons\u0026sp_csd=d2lkZ2V0TmFtZT1zcF9hdGY\u0026psc=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).\n\n## Progress:\n\n\u003ca href=\"#progress\"\u003e\n  \u003cimg src=\"https://custom-icon-badges.demolab.com/badge/percentage-13.03-green?style=for-the-badge\u0026logo=graph\u0026logoColor=white\" /\u003e\n\u003c/a\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmonitio%2Fthe-c-programming-book","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmonitio%2Fthe-c-programming-book","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmonitio%2Fthe-c-programming-book/lists"}