Buzzy Bee
asked on
Red Hat 5/gcc 2.7.2.3-8 --fcvt()function
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 2.7.2.3-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.
Webslider
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.
Webslider
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
I've found an alternative answer, so thanks much.