I was previously working on a Red Hat 4.0 system and everything was fine, until we upgraded to 5.0 and went from gcc 2.7.2-9 to gcc 22.214.171.124-8. Now, a software product I use is having problems. I'm writing programs in C and the software is also written in C. The product calls a function called fcvt() (looks like this and returns a string:
fcvt( 0, 2, &decpt, &sign )
which seems to affect formatting of floating point decimals. The product is looking for the string that is returned to be "00" and both decpt and sign to be 0. The problem is that with the new version of gcc, fcvt() returns "000" and decpt=1. I can buy another product to work around this, but I was thinking it would be easier to rewrite fcvt() since it was so small. If anyone has any knowledge of this could you possibly write a version of fcvt() that solves this and possibly give me more information or resources to look at? I'm anxious for any response! If points are a problems, that can be easily fixed. Thanks.