src/oneShot/test/test.c 1.35

1.35 2009/02/24 03:09:04 kent
Testing floating point binary representation.
Index: src/oneShot/test/test.c
===================================================================
RCS file: /projects/compbio/cvsroot/kent/src/oneShot/test/test.c,v
retrieving revision 1.34
retrieving revision 1.35
diff -b -B -U 4 -r1.34 -r1.35
--- src/oneShot/test/test.c	10 Feb 2009 22:10:19 -0000	1.34
+++ src/oneShot/test/test.c	24 Feb 2009 03:09:04 -0000	1.35
@@ -19,9 +19,11 @@
 
 
 void test(char *word)
 {
-printf("%d\n", word[0]);
+FILE *f = mustOpen(word, "wb");
+float x = 1.23456;
+mustWrite(f, &x, sizeof(x));
 }
 
 int main(int argc, char *argv[], char *env[])
 /* Process command line. */