From owner-freebsd-questions@FreeBSD.ORG Fri Jul 7 10:07:25 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E1F2D16A4DA for ; Fri, 7 Jul 2006 10:07:25 +0000 (UTC) (envelope-from pietro.cerutti@gmail.com) Received: from ug-out-1314.google.com (ug-out-1314.google.com [66.249.92.170]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3629243D46 for ; Fri, 7 Jul 2006 10:07:24 +0000 (GMT) (envelope-from pietro.cerutti@gmail.com) Received: by ug-out-1314.google.com with SMTP id m3so669314uge for ; Fri, 07 Jul 2006 03:07:24 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=OSAXAsVCuJcWaLQaGrWx1nmadmbSIPbD98nyjcZlX/v6I1nzSSbUzcql17z1D0pV/Mqu5nsyTE1wFz2Bwqgrq6ia7hiUewArcLZHo/tSn7rSRruq/N0HTvPU7sVZOP424wQuq3QZ43wQoGBlwE+Hr7WWVCkZOYafggRg6xs/CmA= Received: by 10.66.220.17 with SMTP id s17mr1782265ugg; Fri, 07 Jul 2006 03:07:24 -0700 (PDT) Received: by 10.67.23.8 with HTTP; Fri, 7 Jul 2006 03:07:23 -0700 (PDT) Message-ID: Date: Fri, 7 Jul 2006 12:07:23 +0200 From: "Pietro Cerutti" To: "O. Hartmann" In-Reply-To: <44AE2EF1.5040704@uni-mainz.de> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <44AE246E.9090002@uni-mainz.de> <44AE2EF1.5040704@uni-mainz.de> Cc: freebsd-questions@freebsd.org Subject: Re: some strange strtod behaviour, please help X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 07 Jul 2006 10:07:26 -0000 On 7/7/06, O. Hartmann wrote: > Pietro Cerutti wrote: > > On 7/7/06, O. Hartmann wrote: > >> Hello out here, > >> sorry bothering you with some standard issues ... > >> > >> I ran into trouble with a routine from . > > > > No, from stdlib.h > > > > man strtod says: > > SYNOPSIS > > #include > > > > > >> #include > >> #include > >> #include > > > > #include 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