/* atof.c - converts ascii representations of floating point numbers to single precision IEEE binary */ #includemain() { union { unsigned long image; float x; } both; unsigned char c; while(scanf("%e",&both.x) != EOF) { c = both.image >> 24; putchar(c); c = both.image >> 16; putchar(c); c = both.image >> 8; putchar(c); c = both.image; putchar(c); } }