I have a C++ program that reads in a binary string, parses it into character arrays and converts some of them to doubles with atof. It works fine on the Sun Sparcs on which the data is stored. However, when I compile and run the program on Linux, the program bombs. After debugging with gdb, I found that a string goes into atof as "1201" and comes out as 12019. The Linux system nfs mounts the data disk from the same Sun. I examined the "1201" in binary form, and it looks the same as on the Sun.
Thanks in advance.