https://github.com/emmiegit/c-utils
A collection of various utilities written in C.
https://github.com/emmiegit/c-utils
c
Last synced: 11 months ago
JSON representation
A collection of various utilities written in C.
- Host: GitHub
- URL: https://github.com/emmiegit/c-utils
- Owner: emmiegit
- License: mit
- Created: 2017-01-24T09:25:04.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2024-07-03T04:06:07.000Z (almost 2 years ago)
- Last Synced: 2025-03-29T23:41:13.575Z (about 1 year ago)
- Topics: c
- Language: C
- Homepage:
- Size: 203 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
## c-utils
Some 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.
All 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.
### Single file programs
* `getchar` - Read a character from stdin and identify it.
* `getch` - `getchar`, but in curses. Accepts weird keys like page down.
* `lspath` - Search for all executables on your `$PATH` that match the given pattern(s).
* `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.
* `xfiller` - An X11 program that opens a window. That's it. Useful for padding on tiling WMs.
### Directories
**`rmln`** (in directory `remove_links/`)
A "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.
**`libais`**
A "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.
### Compilation and Running
Generally 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.
Be sure you invoke `make` in each directory manually, since the top level Makefile only compiles sources directly in that directory.