aboutsummaryrefslogtreecommitdiffstats
path: root/c/args.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* refactor: c/ -> usr/, compiled program blobs out of the source treeuser4 days1-12/+0
| | | | | | | Userland sources live in usr/ (fits the Unix theme better than 'c'). SDCC output .bin blobs land in build/usr/ with the other build artifacts instead of littering the source dir; programs.asm INCBINs them from there. Byte-identical ROM.
* tools: wc, head, and an argc/argv demo (args) + libc.c helpersuser6 days1-0/+12
- c/libc.c: shared C helpers linked into every program - putu (print decimal), atou (parse decimal), argv_parse (tokenize getargs() into argc/argv). - wc: count lines/words/chars of stdin. head [n]: first n lines (drains rest to EOF). args: argc/argv demo. - pid now uses libc putu; build.sh links libc.c; Makefile CBLOBS + libc dep. - README: document the new tools + argv_parse. - verified: 'args one two three' -> argc=3/argv[..]; wc '2 3 16'; head 2.