public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
From: Erik Trulsson <ertr1013@student.uu.se>
To: Reinaldo Nolasco Sanches <r_linux@yahoo.com>
Cc: gcc@gcc.gnu.org
Subject: Re: atof()
Date: Mon, 19 Aug 2002 11:18:00 -0000	[thread overview]
Message-ID: <20020819181836.GA26359@falcon.midgard.homeip.net> (raw)
In-Reply-To: <20020819174953.82701.qmail@web14402.mail.yahoo.com>

On Mon, Aug 19, 2002 at 10:49:53AM -0700, Reinaldo Nolasco Sanches wrote:
> 
> I have a problem with atof()... and I don't understand because it...
> When I use atof() to get a value of a string... and put in my double var, the value is not the
> same...

This is not the right list for this kind of question but I will answer
anyway.  (This list is for discussion of the development of gcc, not
how to use gcc.)

If you use atof() you need to include stdlib.h first to get the
prototype.  Otherwise the compiler will assume atof() returns an int
and thus generate bad code.

> 
> I make a little example...
> 
> #include <stdio.h>
> 
> int main()
> {


-- 
<Insert your favourite quote here.>
Erik Trulsson
ertr1013@student.uu.se

  parent reply	other threads:[~2002-08-19 11:18 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-08-19 10:49 atof() Reinaldo Nolasco Sanches
2002-08-19 11:03 ` atof() H. J. Lu
2002-08-19 11:09 ` atof() Janis Johnson
2002-08-19 11:13 ` atof() Brad House
2002-08-19 11:13 ` atof() Andreas Jaeger
2002-08-19 11:18 ` Erik Trulsson [this message]
     [not found] <Pine.LNX.4.33L2.0208191404020.11506-100000@sol.galaxy.acm.jhu.edu>
2002-08-19 12:57 ` atof() Reinaldo Nolasco Sanches

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20020819181836.GA26359@falcon.midgard.homeip.net \
    --to=ertr1013@student.uu.se \
    --cc=gcc@gcc.gnu.org \
    --cc=r_linux@yahoo.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).