- union
- {
- uint8_t b[8];
- double d;
- }
- x = { .b = { 0x18, 0x00, 0x00, 0x1c, 0xf0, 0xff, 0xff, 0x5f } };
- printf ("%f\n", x.d);
+ uint8_t b[] = { 0x1f, 0x05, 0, 0, 0xa2, 3, 0, 0, 0x64, 0, 0, 0 };
+ int n = sizeof b;
+ for (int i = 0; i <= n - 8; i++)
+ print_double (b + i);
+/*
+ for (int i = 0; i <= n - 4; i++)
+ print_float (b + i);
+*/