{"id":21970668,"url":"https://github.com/sirwumpus/iocccsize","last_synced_at":"2025-06-29T21:02:47.616Z","repository":{"id":43526248,"uuid":"327318908","full_name":"SirWumpus/iocccsize","owner":"SirWumpus","description":"IOCCC Source Size Tool (original author)","archived":false,"fork":false,"pushed_at":"2024-07-13T10:58:26.000Z","size":117,"stargazers_count":4,"open_issues_count":0,"forks_count":3,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-06-29T21:02:02.026Z","etag":null,"topics":["c","ioccc","rules"],"latest_commit_sha":null,"homepage":"https://www.ioccc.org/","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"unlicense","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/SirWumpus.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}},"created_at":"2021-01-06T13:24:37.000Z","updated_at":"2024-07-13T10:58:15.000Z","dependencies_parsed_at":"2024-06-28T12:51:19.869Z","dependency_job_id":"4fa576a5-d013-4efc-9d71-8545136440fb","html_url":"https://github.com/SirWumpus/iocccsize","commit_stats":null,"previous_names":[],"tags_count":15,"template":false,"template_full_name":null,"purl":"pkg:github/SirWumpus/iocccsize","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SirWumpus%2Fiocccsize","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SirWumpus%2Fiocccsize/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SirWumpus%2Fiocccsize/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SirWumpus%2Fiocccsize/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/SirWumpus","download_url":"https://codeload.github.com/SirWumpus/iocccsize/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SirWumpus%2Fiocccsize/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":262667246,"owners_count":23345524,"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","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":["c","ioccc","rules"],"created_at":"2024-11-29T14:41:42.078Z","updated_at":"2025-06-29T21:02:46.780Z","avatar_url":"https://github.com/SirWumpus.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"iocccsize\n=========\n\nThe original IOCCC source code rule size checking tool.\n\n```\nusage: iocccsize [-ihV][-v level] prog.c\n       iocccsize [-ihV][-v level] \u003c prog.c\n\n-i              ignored for backward compatibility\n-h              print usage message in stderr and exit\n-v level        turn on some debugging to stderr\n-V              print version and exit\n\nThe IOCCC net count rule 2b is written to stdout; with -v1, net count (2b),\ngross count (2a), number of keywords counted as 1 byte.  With -v2 or -v3\nwrite source to stdout and tool diagnostics to stderr.\n\nExit Codes\n\n0       source code passes rules 2a and 2b.\n1       source code fails rule 2a and/or 2b.\n2       usage -h\n3       version -V\n4       command line argument error\n5+      some other internal error\n```\n\n\nHistory\n-------\n\nFollowing my [IOCCC 1991 Best Utility](https://github.com/SirWumpus/ioccc-ae) win I needed something to help with applying the IOCCC Rule 2 Size Limit during the development of my [1992](https://github.com/SirWumpus/ioccc-am) and [1993](https://github.com/SirWumpus/ioccc-am) submissions (combined with some `sed(1)` transformations).  The tool kept being refined over the years as I kepted submitted entries to the IOCCC.\n\nSometime around 2012 or 2013 I was in contact with one of the IOCCC judges, [Landon Court Noll](https://github.com/lcn2), proposing  Rule 2 Size Limit changes and mentioned I had this tool I used to help prepare my entries.  Landon perked up to the idea of including the tool as part of the contest to help contestants (and judges) apply the Rule 2 Size Limit.  The `iocccsize` tool first appeared in IOCCC 2014.\n\nThe IOCCC has now moved to retool its submission process by integrating a version of this tool into [mkiocccentry](https://github.com/ioccc-src/mkiocccentry) with changes made to turn the core into a library function `rule_count()`.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsirwumpus%2Fiocccsize","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsirwumpus%2Fiocccsize","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsirwumpus%2Fiocccsize/lists"}