From 4b65e43c54c2ca1394babed18cc02f4fffc22e16 Mon Sep 17 00:00:00 2001 From: rsc Date: Mon, 22 May 2006 14:56:13 +0000 Subject: more tests --- src/lib9/testprint.c | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 src/lib9/testprint.c (limited to 'src/lib9/testprint.c') diff --git a/src/lib9/testprint.c b/src/lib9/testprint.c new file mode 100644 index 00000000..242befb4 --- /dev/null +++ b/src/lib9/testprint.c @@ -0,0 +1,14 @@ +#include +#include + +void +main(int argc, char **argv) +{ + char c; + + c = argv[1][strlen(argv[1])-1]; + if(c == 'f' || c == 'e' || c == 'g' || c == 'F' || c == 'E' || c == 'G') + print(argv[1], atof(argv[2])); + else if(c == 'x' || c == 'u' || c == 'd' || c == 'c' || c == 'C' || c == 'X') + print(argv[1], atoi(argv[2])); +} -- cgit v1.2.3