diff options
author | Rob Landley <rob@landley.net> | 2018-03-26 17:36:33 -0500 |
---|---|---|
committer | Rob Landley <rob@landley.net> | 2018-03-26 17:36:33 -0500 |
commit | 16c4357f0d0df0ce4f91d424cc57ce571ccf4e91 (patch) | |
tree | 46aad6b838a96c243465af0cd6c70d7ac37a70dd /toys/example/demo_human_readable.c | |
parent | 48ac4c6c4fb7d25040cadd3c046578dd7530da00 (diff) | |
download | toybox-16c4357f0d0df0ce4f91d424cc57ce571ccf4e91.tar.gz |
Rename demo_human_readable.c->demo_number.c and have it do atolx() too.
Diffstat (limited to 'toys/example/demo_human_readable.c')
-rw-r--r-- | toys/example/demo_human_readable.c | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/toys/example/demo_human_readable.c b/toys/example/demo_human_readable.c deleted file mode 100644 index 9fff2626..00000000 --- a/toys/example/demo_human_readable.c +++ /dev/null @@ -1,23 +0,0 @@ -/* test_human_readable.c - Expose lib/lib.c human_readable() for testing. - * - * Copyright 2015 Rob Landley <rob@landley.net> - -USE_TEST_HUMAN_READABLE(NEWTOY(test_human_readable, "<1>1ibs", TOYFLAG_BIN)) - -config TEST_HUMAN_READABLE - bool "test_human_readable" - default n - help - usage: test_human_readable [-sbi] NUMBER -*/ - -#define FOR_test_human_readable -#include "toys.h" - -void test_human_readable_main(void) -{ - char *c; - - human_readable(toybuf, strtoll(*toys.optargs, &c, 0), toys.optflags); - printf("%s\n", toybuf); -} |