Date: Fri, 7 Jul 2006 12:07:23 +0200 From: "Pietro Cerutti" <pietro.cerutti@gmail.com> To: "O. Hartmann" <ohartman@uni-mainz.de> Cc: freebsd-questions@freebsd.org Subject: Re: some strange strtod behaviour, please help Message-ID: <e572718c0607070307p43583f95o13d5b2944700ee56@mail.gmail.com> In-Reply-To: <44AE2EF1.5040704@uni-mainz.de> References: <44AE246E.9090002@uni-mainz.de> <e572718c0607070250x4364d494v3aa2b8d8de3ce87c@mail.gmail.com> <44AE2EF1.5040704@uni-mainz.de>
next in thread | previous in thread | raw e-mail | index | archive | help
On 7/7/06, O. Hartmann <ohartman@uni-mainz.de> wrote: > Pietro Cerutti wrote: > > On 7/7/06, O. Hartmann <ohartman@uni-mainz.de> wrote: > >> Hello out here, > >> sorry bothering you with some standard issues ... > >> > >> I ran into trouble with a routine from <string.h>. > > > > No, from stdlib.h > > > > man strtod says: > > SYNOPSIS > > #include <stdlib.h> > > > > > >> #include <stdio.h> > >> #include <math.h> > >> #include <string.h> > > > > #include <stdlib.h> will solve your problems... > > > > > Yes, it does. > Thanks ... > I wonder why the compiler did not moan about a unknow call ... Because it could be an error or not, depending on what standard are you using. In C89 a function without a prototype is implicitly declared. This is not true if your're working in C99. Using cc with -Wimplicit as option will show you warnings about implicit function declarations.. Using cc with -Wall as option is usually good practice.... > > Thnaks a lot, > oh > -- Pietro Cerutti ICQ: 117293691 PGP: 0x9571F78E - ASCII Ribbon Campaign - against HTML e-mail and proprietary attachments www.asciiribbon.org
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?e572718c0607070307p43583f95o13d5b2944700ee56>