From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 3080 invoked by alias); 24 Nov 2002 09:50:23 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 3066 invoked from network); 24 Nov 2002 09:50:21 -0000 Received: from unknown (HELO cygbert.vinschen.de) (217.81.210.114) by sources.redhat.com with SMTP; 24 Nov 2002 09:50:21 -0000 Received: (from corinna@localhost) by cygbert.vinschen.de (8.11.6/8.9.3/Linux sendmail 8.9.3) id gAO9oFk20138; Sun, 24 Nov 2002 10:50:15 +0100 Date: Sun, 24 Nov 2002 05:25:00 -0000 From: Corinna Vinschen To: newlib@sources.redhat.com Cc: cygwin@cygwin.com Subject: Re: strtof is missing Message-ID: <20021124105015.X1398@cygbert.vinschen.de> Mail-Followup-To: newlib@sources.redhat.com, cygwin@cygwin.com References: <200211240004.04863.jblazi@gmx.de> <177909597.20021124103437@vtc.ru> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <177909597.20021124103437@vtc.ru> User-Agent: Mutt/1.3.22.1i X-SW-Source: 2002-11/txt/msg01323.txt.bz2 On Sun, Nov 24, 2002 at 10:34:37AM +1000, Arseny Slobodjuck wrote: > Sunday, November 24, 2002, 9:04:04 AM, you wrote: > > j> I use a pretty new Cygwin release and I notice that the strtof function is > j> missing in stdlib.h. On my Linux system the function is declared in stdlib.h. > > j> Can anybody help me? I should have to convert a string to a flat and this > j> seems to be the only possibility. (O do not want to have double). > > How about atof or sscanf ? That is two. Or float f = (float) strtod (); However, I just had a look into newlib and there's a function float strtodf (const char *, char **); defined. There's no man page on Linux and no such entry in SUSv3, but it's the correct definition for strtof(3). It looks like a typo, including stdlib.h. Or is there a good reason for that definition?!? Corinna -- Corinna Vinschen Please, send mails regarding Cygwin to Cygwin Developer mailto:cygwin@cygwin.com Red Hat, Inc. -- 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/