summary refs log tree commit diff
path: root/src/tools/fptox.c
diff options
context:
space:
mode:
authorQuentin Carbonneaux <quentin.carbonneaux@yale.edu>2016-03-27 18:17:08 -0400
committerQuentin Carbonneaux <quentin.carbonneaux@yale.edu>2016-03-27 18:17:08 -0400
commitda640c5a467bfdf7b3bbced52fc13a28fd8b37bd (patch)
treecf5a4af994ac8b8f7357bbf3414c4179f94321ad /src/tools/fptox.c
parente38c61d95fccd208e13dd14a31a567c3d431677a (diff)
downloadroux-da640c5a467bfdf7b3bbced52fc13a28fd8b37bd.tar.gz
move tools to the root
Diffstat (limited to 'src/tools/fptox.c')
-rw-r--r--src/tools/fptox.c18
1 files changed, 0 insertions, 18 deletions
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 <stdio.h>
-#include <stdlib.h>
-
-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;
-}