{"id":25171320,"url":"https://github.com/basemax/strip-c-comments","last_synced_at":"2025-10-04T16:44:17.888Z","repository":{"id":151535600,"uuid":"458258761","full_name":"BaseMax/Strip-C-Comments","owner":"BaseMax","description":"A C program to strip comments from a c file and output the result to a new file.","archived":false,"fork":false,"pushed_at":"2023-10-29T10:28:40.000Z","size":26,"stargazers_count":5,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-05-04T21:45:54.222Z","etag":null,"topics":["c","regex","remove-c-comment","remove-c-comments","remove-comment","remove-comments","strip-c-comment","strip-c-comments","strip-comment","strip-comments"],"latest_commit_sha":null,"homepage":"","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/BaseMax.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}},"created_at":"2022-02-11T16:22:44.000Z","updated_at":"2024-01-14T15:36:09.000Z","dependencies_parsed_at":"2023-07-10T14:15:28.105Z","dependency_job_id":null,"html_url":"https://github.com/BaseMax/Strip-C-Comments","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BaseMax%2FStrip-C-Comments","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BaseMax%2FStrip-C-Comments/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BaseMax%2FStrip-C-Comments/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BaseMax%2FStrip-C-Comments/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/BaseMax","download_url":"https://codeload.github.com/BaseMax/Strip-C-Comments/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252575090,"owners_count":21770507,"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","regex","remove-c-comment","remove-c-comments","remove-comment","remove-comments","strip-c-comment","strip-c-comments","strip-comment","strip-comments"],"created_at":"2025-02-09T09:19:51.410Z","updated_at":"2025-10-04T16:44:12.831Z","avatar_url":"https://github.com/BaseMax.png","language":"C","readme":"# Strip C-like Comments\n\nA **C program** to strip comments from a `c` file and output the result to a new file.\n\n## Features\n\n- Fast and Without any third-party library\n- Without using Regex\n- Remove inline C-style comments\n- Remove multiline C-style comments\n- Trim whitespaces\n- Remove two or more empty lines \n\n## Build\n\n```\ngcc StripComments.c -o strip_comments\n```\n\n## Using\n\nIf you are going to strip comments and get the results in stdout:\n\n```\n./strip_comments StripComments.c\n```\n\nAnd maybe sometime you need to write the result in another or same file:\n\n```\n./strip_comments StripComments.c StripComments.nocomments.c\n```\n\n### TODO\n\n- Add Makefile or CMake (to set `strip_comments` in /user/bin/)\n\nAnyone welcome to do contribute or extend the program to support **Python** comments too. (With a flag)\n\n© Copyright Max Base, 2022\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbasemax%2Fstrip-c-comments","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbasemax%2Fstrip-c-comments","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbasemax%2Fstrip-c-comments/lists"}