# madler/zlib SLOC report

> madler/zlib: 37,814 code lines at commit 767c4c947852, counted with tokei-14.0.0 on 2026-10-16. Saved result 75f900c212dc35da7e2533ff29c2e8f86b6503113fecf9413def60ae175b6cec.

madler/zlib has 37,814 source lines of code out of 55,284 total lines across 166 files, counted from the 767c4c947852e143f582c85f14cf573411df1b35 ref at commit 767c4c947852 by the OctoCounts tokei engine on 2026-10-16. The report is cached by commit, tokei version, and analysis options, so recounting the same revision returns exactly these numbers.

OctoCounts produced this report by resolving madler/zlib to commit 767c4c947852, downloading the repository source archive, and counting every source file with tokei, the open-source line counter written in Rust. The table below breaks the count down by programming language into files, total lines, code lines, comment lines, and blank lines, so the figures can be compared across languages and projects. Results are cached by commit, tokei version, and analysis options, so counting the same revision again reproduces exactly these numbers.

## Repository size insights

This is a medium-sized codebase by counted code lines. Code represents 68.4% of all lines, comments represent 20.9%, and the repository averages 228 code lines per file. C accounts for 42.2% of counted code.

| Language | Files | Lines | Code | Comments | Blanks |
| --- | ---: | ---: | ---: | ---: | ---: |
| C | 40 | 23,825 | 15,940 | 5,193 | 2,692 |
| C Header | 31 | 16,483 | 12,529 | 3,165 | 789 |
| CMake | 20 | 2,311 | 1,828 | 133 | 350 |
| Ada | 10 | 2,841 | 1,682 | 560 | 599 |
| Shell | 2 | 1,463 | 1,146 | 159 | 158 |
| Pascal | 4 | 1,443 | 1,016 | 216 | 211 |
| C# | 9 | 1,615 | 879 | 506 | 230 |
| Autoconf | 11 | 1,253 | 630 | 451 | 172 |
| C++ | 5 | 907 | 599 | 136 | 172 |
| HTML | 1 | 550 | 549 | 1 | 0 |
| GNU Style Assembly | 1 | 570 | 246 | 212 | 112 |
| Makefile | 8 | 378 | 236 | 33 | 109 |
| MSBuild | 2 | 186 | 174 | 8 | 4 |
| Module-Definition | 1 | 104 | 97 | 7 | 0 |
| XML | 1 | 116 | 95 | 17 | 4 |
| Bazel | 2 | 143 | 91 | 40 | 12 |
| Visual Studio Solution | 2 | 43 | 42 | 0 | 1 |
| Automake | 1 | 46 | 35 | 0 | 11 |
| Markdown | 1 | 81 | 0 | 45 | 36 |
| Plain Text | 14 | 926 | 0 | 688 | 238 |

Top language (C 42.2%). Generated at 2026-10-16T05:01:49.379937813Z. Canonical report: https://octocounts.com/github/madler/zlib/commit/767c4c947852e143f582c85f14cf573411df1b35?reportId=75f900c212dc35da7e2533ff29c2e8f86b6503113fecf9413def60ae175b6cec&analysis=%7B%22profile%22%3A%22default%22%2C%22ignoredDirs%22%3A%5B%5D%2C%22includeDocs%22%3Afalse%2C%22includeTests%22%3Afalse%2C%22ignoredLanguages%22%3A%5B%5D%2C%22includeGenerated%22%3Afalse%7D

## Reproduce this report

[Reproduce this exact report and configuration](https://octocounts.com/github/madler/zlib/commit/767c4c947852e143f582c85f14cf573411df1b35?reportId=75f900c212dc35da7e2533ff29c2e8f86b6503113fecf9413def60ae175b6cec&analysis=%7B%22profile%22%3A%22default%22%2C%22ignoredDirs%22%3A%5B%5D%2C%22includeDocs%22%3Afalse%2C%22includeTests%22%3Afalse%2C%22ignoredLanguages%22%3A%5B%5D%2C%22includeGenerated%22%3Afalse%7D).

## Report FAQ

### How many lines of code does madler/zlib have?

madler/zlib has 55,284 total lines, including 37,814 code lines, 11,570 comment lines, and 5,900 blank lines.

### How was the madler/zlib line count measured?

OctoCounts resolved the public GitHub repository to commit 767c4c947852, downloaded the source archive, counted it with tokei, and cached the report by commit, tokei version, and analysis options.

### What commit was counted for madler/zlib?

This OctoCounts report was generated from 767c4c947852e143f582c85f14cf573411df1b35 at commit 767c4c947852 on 2026-10-16T05:01:49.379937813Z.

## Similar repository reports

- [i3/i3](https://octocounts.com/github/i3/i3) — C, 37,451 code lines
- [lua/lua](https://octocounts.com/github/lua/lua) — C, 36,979 code lines
- [id-Software/DOOM](https://octocounts.com/github/id-Software/DOOM) — C, 39,250 code lines
- [htop-dev/htop](https://octocounts.com/github/htop-dev/htop) — C, 39,420 code lines
- [MuhannadYT/AirMirror](https://octocounts.com/github/MuhannadYT/AirMirror) — C, 35,254 code lines
- [mangowm/mango](https://octocounts.com/github/mangowm/mango) — C, 40,612 code lines

## Related OctoCounts pages

- [Recently analyzed repositories](https://octocounts.com/recent)
- [Popular SLOC reports](https://octocounts.com/popular)
- [Trending GitHub repositories](https://octocounts.com/trending)
- [Hall of Monoliths](https://octocounts.com/hall-of-monoliths)
- [Neovim vs VS Code](https://octocounts.com/compare/neovim-vs-vscode)
- [MongoDB vs PostgreSQL](https://octocounts.com/compare/mongodb-vs-postgres)
- [GitHub SLOC counter guide](https://octocounts.com/docs/github-sloc-counter)
- [Counting methodology](https://octocounts.com/docs/methodology)
- [SLOC and code metrics glossary](https://octocounts.com/docs/glossary)
- [Original research: how filtering changes SLOC counts](https://octocounts.com/research)
- [OctoCounts API docs](https://octocounts.com/docs/api)
