aquefir / hinterlib

Hinterlib, formerly unilib. A libc surrogate.
BSD 2-Clause "Simplified" License
7 stars 0 forks source link

Create a piper module for UNIX stdio utility boilerplate #11

Open nicholatian opened 3 years ago

nicholatian commented 3 years ago

Many small UNIX programs do one thing and do it well, not even taking any flags or parameters on the command-line. They get their input from stdin, send it to stdout, and call it a day.

Doing this requires some boilerplate, especially in C, and even more boilerplate if one needs to handle large files properly with streaming. Luckily, this is practical using standard C, Hinterlib’s only dependency, so implementing it should be a boon to developing such programs.