Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com To: cygwin AT cygwin DOT com CC: news AT garydjones DOT mailshell DOT com Subject: Re: 1.3.12-2 : atof() always returns 0 References: X-Face: I-*}xvwusAv%MlABo'jVNP7TDXf5bb*L[q,r{DnsR1GoL07^Wf)sAu%>!LjXAFlZZN+`OQu }?#du]C)[*%ERKR#+l#sX'EoNbSO~|.x AT ogoS5|"-u? Date: Fri, 12 Jul 2002 15:03:59 +0200 In-Reply-To: =?iso-8859-1?q?("Herv=E9?= Le Net"'s message of "Fri, 12 Jul 2002 08:32:56 +0000") Message-ID: <87ele9f680.fsf@vzell-de.de.oracle.com> Lines: 71 User-Agent: Gnus/5.090005 (Oort Gnus v0.05) XEmacs/21.4 (Common Lisp (candidate 1), i686-pc-cygwin) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii >>>>> "hlenet" == hlenet writes: hlenet> Hi, hlenet> The atof() function, compiled with gcc, always returns 0. hlenet> Example : hlenet> f = atof("123.456"); hlenet> printf("%f\n", f); hlenet> Result : hlenet> 0.000000 Hi I'm wondering wether this is the reason for the failing test of libslang o slang-1.4.5 - http://www.s-lang.org/ - ftp://space.mit.edu/pub/davis/slang/v1.4/ Whereas it doesn't fail the test with cygwin-1.3.10. cd src; make runtests make[1]: Entering directory `/usr/local/src/slang-1.4.5/src' cd test; make CC="gcc" CFLAGS="-g -O2 -fno-strength-reduce" TCAPLIB="" make[2]: Entering directory `/usr/local/src/slang-1.4.5/src/test' Running tests: Testing syntax ...Ok Testing sscanf ...S-Lang Traceback: (Error occurred on line 40) S-Lang Traceback: test_atof File: sscanf.sl Local Variables: $0: Type: Double_Type, Value: -1.82703 $1: Type: Undefined_Type, Value: Undefined_Type $2: Type: String_Type, Value: "-1.8270318497395046097864224066142924129962920000000000000000000000e+00" $3: Type: String_Type, Value: "-1.8270318497395046097864224066142924129962920000000000000000000000E+00" S-Lang Traceback: (Error occurred on line 75) S-Lang Traceback: (Error occurred on line 72) S-Lang Traceback: loop S-Lang Traceback: (Error occurred on line 61) S-Lang Traceback: test_atof_main File: sscanf.sl Local Variables: $0: Type: Integer_Type, Value: 1000 $1: Type: Double_Type, Value: -91.5717 $2: Type: Double_Type, Value: -1.70002 $3: Type: Double_Type, Value: -1.82703 S-Lang Error: Internal Error: called from line 81, file: sscanf.sl Testing looping constructs ...Ok Testing Arithmetic ...Ok Testing array functions ...Ok Testing string functions...Ok Testing Binary Strings...Ok Testing pack and unpack functions...Ok Testing stdio routines...Ok Testing Associative Arrays ...Ok Testing recursive function modifications ...Ok Testing structures ...Ok Testing NameSpace routines ...Ok Testing ospath ...Ok Testing #ifeval ...Ok Testing Any_Type ...Ok Testing Matrix Multiplications ...Ok touch sltest.c make[2]: Leaving directory `/usr/local/src/slang-1.4.5/src/test' make[1]: Leaving directory `/usr/local/src/slang-1.4.5/src' Ciao Volker -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/