Solved

Red Hat 5/gcc 2.7.2.3-8 --fcvt()function

Posted on 1998-03-12
2
260 Views
Last Modified: 2013-12-06
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
0
Comment
Question by:webslider
2 Comments
 
LVL 32

Accepted Solution

by:
jhance earned 200 total points
ID: 1636722
Why not get the RTL source for 2.7.2-9 and extract the old fcvt code?
0
 

Author Comment

by:webslider
ID: 1636723
You can't do this for sure because gcc 2.7.2.3-8 switched to using glibc and not libc so the new library may have other functions it uses that the fcvt() function in gcc2.7.2-9 calls that won't work or won't work as expected.

I've found an alternative answer, so thanks much.
0

Featured Post

Backup Your Microsoft Windows Server®

Backup all your Microsoft Windows Server – on-premises, in remote locations, in private and hybrid clouds. Your entire Windows Server will be backed up in one easy step with patented, block-level disk imaging. We achieve RTOs (recovery time objectives) as low as 15 seconds.

Join & Write a Comment

This article will explain how to establish a SSH connection to Ubuntu through the firewall and using a different port other then 22. I have set up a Ubuntu virtual machine in Virtualbox and I am running a Windows 7 workstation. From the Ubuntu vi…
You ever wonder how to backup Linux system files just like Windows System Restore?  Well you can use Timeshift in Linux to perform those similar action.  This tutorial will show you how to backup your system files and keep regular intervals. Note…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now