aboutsummaryrefslogtreecommitdiff
path: root/toys/example/demo_number.c
AgeCommit message (Collapse)Author
2020-09-04Add commas to top display, and adjust memory units to megabytes if >10G RAM.Rob Landley
2019-05-16Add human_readable_long() for more than 3 digits of output.Rob Landley
2018-12-04Clean up some --help formatting.Elliott Hughes
Be consistent about upper versus lower case. (Upper seems to have the majority, so I went with that, though I'm happy to provide the opposite patch as long as we're consistent!) Be consistent about using \t. (Though saving a few bytes seems like it might be better done in the code that generates help.h rather than directly in the source, since tabs make careful ASCII art layout hard enough that we regularly have things misaligned.) Remove trailing periods (most of which seem to have been added by me). Always use the US "human readable" rather than my British "human-readable", and be more consistent about declaring whether we're showing multiples of 1000 or 1024. Just say "verbose" rather than adding a useless "mode" or "output".
2018-03-26Rename demo_human_readable.c->demo_number.c and have it do atolx() too.Rob Landley