{"id":17609877,"url":"https://github.com/emmiegit/c-utils","last_synced_at":"2025-07-14T15:32:55.570Z","repository":{"id":144515748,"uuid":"79896760","full_name":"emmiegit/c-utils","owner":"emmiegit","description":"A collection of various utilities written in C.","archived":false,"fork":false,"pushed_at":"2024-07-03T04:06:07.000Z","size":208,"stargazers_count":1,"open_issues_count":2,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-29T23:41:13.575Z","etag":null,"topics":["c"],"latest_commit_sha":null,"homepage":"","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/emmiegit.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":"2017-01-24T09:25:04.000Z","updated_at":"2024-07-03T04:06:11.000Z","dependencies_parsed_at":null,"dependency_job_id":"51b40c94-7c6e-4ccd-a550-c6b14adac509","html_url":"https://github.com/emmiegit/c-utils","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/emmiegit/c-utils","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/emmiegit%2Fc-utils","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/emmiegit%2Fc-utils/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/emmiegit%2Fc-utils/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/emmiegit%2Fc-utils/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/emmiegit","download_url":"https://codeload.github.com/emmiegit/c-utils/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/emmiegit%2Fc-utils/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265311985,"owners_count":23745176,"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"],"created_at":"2024-10-22T17:10:27.719Z","updated_at":"2025-07-14T15:32:55.530Z","avatar_url":"https://github.com/emmiegit.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"## c-utils\nSome small utilities and libraries written in C. They're mostly CLI utilities, and they're likely not too useful. If you actually use one of these, please tell me.\n\nAll files are available under the MIT license unless otherwise specified. Check for a `LICENSE` file in a directory to see if it has an overriding license.\n\n### Single file programs\n* `getchar` - Read a character from stdin and identify it.\n* `getch` - `getchar`, but in curses. Accepts weird keys like page down.\n* `lspath` - Search for all executables on your `$PATH` that match the given pattern(s).\n* `pid-loop` - Simple program that reads a pid from stdin and stays alive as long as the process it's tracking is alive. Not very fancy.\n* `xfiller` - An X11 program that opens a window. That's it. Useful for padding on tiling WMs.\n\n### Directories\n**`rmln`** (in directory `remove_links/`)\n\nA \"safer\" `rm`, since it only deletes links. That is, it will only delete a file if it is either (1) symbolic or (2) has more than one hard link. This makes file deletion less stressful, since it's not possible to delete files that unique, i.e. only exist in one place. Also includes a man page.\n\n**`libais`**\n\nA \"standard library\" or something. Not super useful right now. The eventual idea is to centralize a bunch of useful things that I use in one place.\n\n### Compilation and Running\nGenerally I write strictly ANSI C, so you should have no problem finding a compatible compiler. Other than that, dependencies vary on the program. For example, `xfiller` obviously depends on Xlib.\n\nBe sure you invoke `make` in each directory manually, since the top level Makefile only compiles sources directly in that directory.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Femmiegit%2Fc-utils","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Femmiegit%2Fc-utils","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Femmiegit%2Fc-utils/lists"}