🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.gdb.bug
Article #326

strtod

#326
From: Raul Deluth Rockwell
Date: Mon, 20 Nov 1989 01:45
24 lines
1322 bytes
Standard C (P.J. Plauger & Jim Brodie, Microsoft Press 1989, p163):
        double strtod(const char *s, char **endptr);

GDB 3.4 (FSF 1989):
	(gdb) whatis strtod
	type = int ()
	(gdb) print strtod("0", 0)
	$2 = 81368

----------------------------------------------------------------------

There may be a problem with gcc as well, as I was running into a
problem with code using strtod until I added a line that said
extern double strtod();

As I am still debugging, and as I can't rely on gdb here to give me a
picture of what is going on, I don't really know if there is a gcc
bug.  [Incidentally, the extern declaration is present for the gdb
invocation which thought that strtod is an int type.]

Raul Rockwell
INTERNET:   raulmill@usc.edu                       !
UUCP:       ...uunet!usc!raulmill                  !  55 mph = 82 nc
U.S.SNAIL:  721 E Windsor #4,  GLENDALE CA  91205  !
Technical Details
Message-ID: <8911200145.AA19059@aludra.usc.edu>
Path: arc1-ca.pugleaf.net!utzoo!mnetor!tmsoft!torsqnt!jarvis.csri.toronto.edu!rutgers!tut.cis.ohio-state.edu!usc.edu!raulmill%aludra.usc.edu

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!mnetor!tmsoft!torsqnt!jarvis.csri.toronto.edu!rutgers!tut.cis.ohio-state.edu!usc.edu!raulmill%aludra.usc.edu
From: raulmill%aludra.usc.edu@usc.edu (Raul Deluth Rockwell)
Newsgroups: gnu.gdb.bug
Subject: strtod
Message-ID: <8911200145.AA19059@aludra.usc.edu>
Date: 20 Nov 89 01:45:11 GMT
Sender: daemon@tut.cis.ohio-state.edu
Distribution: gnu
Organization: GNUs Not Usenet
Lines: 24