From da640c5a467bfdf7b3bbced52fc13a28fd8b37bd Mon Sep 17 00:00:00 2001 From: Quentin Carbonneaux Date: Sun, 27 Mar 2016 18:17:08 -0400 Subject: move tools to the root --- src/tools/fptox.c | 18 ------------------ 1 file changed, 18 deletions(-) delete mode 100644 src/tools/fptox.c (limited to 'src/tools/fptox.c') diff --git a/src/tools/fptox.c b/src/tools/fptox.c deleted file mode 100644 index a2bc155..0000000 --- a/src/tools/fptox.c +++ /dev/null @@ -1,18 +0,0 @@ -#include -#include - -int -main(int ac, char *av[]) -{ - double d; - float f; - - if (ac < 2) { - usage: - fputs("usage: fptox NUMBER\n", stderr); - return 1; - } - f = d = strtod(av[1], 0); - printf("0x%08x 0x%016llx\n", *(unsigned *)&f, *(unsigned long long*)&d); - return 0; -} -- cgit 1.4.1