Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

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

Posted on 1998-03-12
2
Medium Priority
?
272 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 32

Accepted Solution

by:
jhance earned 600 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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction We as admins face situation where we need to redirect websites to another. This may be required as a part of an upgrade keeping the old URL but website should be served from new URL. This document would brief you on different ways ca…
In part one, we reviewed the prerequisites required for installing SQL Server vNext. In this part we will explore how to install Microsoft's SQL Server on Ubuntu 16.04.
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
Suggested Courses

618 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