delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1999/04/07/17:55:30

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
Sender: cygwin-owner AT sourceware DOT cygnus DOT com
Delivered-To: mailing list cygwin AT sourceware DOT cygnus DOT com
From: Chris Faylor <cgf AT cygnus DOT com>
Date: Wed, 7 Apr 1999 17:53:08 -0400
To: Kehl Hubertus <Hubertus DOT Kehl AT icn DOT siemens DOT de>
Cc: "'cygwin AT sourceware DOT cygnus DOT com'" <cygwin AT sourceware DOT cygnus DOT com>
Subject: Re: Cygwin FCVT Bug
Message-ID: <19990407175308.A961@cygnus.com>
References: <197A67E1DB8DD211A4670008C728B7040B64CA AT mchh220e DOT demchh201e DOT oen DOT siemens DOT de>
Mime-Version: 1.0
X-Mailer: Mutt 0.95.3i
In-Reply-To: <197A67E1DB8DD211A4670008C728B7040B64CA@mchh220e.demchh201e.oen.siemens.de>; from Kehl Hubertus on Tue, Apr 06, 1999 at 11:28:13AM +0200

Thanks for reporting this.  I've alerted the folks responsible here.
It is fixed and will be available in a snapshot soon.

-chris

On Tue, Apr 06, 1999 at 11:28:13AM +0200, Kehl Hubertus wrote:
>I encountered the following fcvt Bug in the C-Library of Cygwin. With
>Borland C or gcc under Linux this
>function works alright. The following sample demonstrates the bug, the
>number 1130.0 should be converted
>to zero digits after the decimal point, 1130 should be returned. Cygwin
>returns 113 :(
>Bye
>Hubertus
>
>#include <stdio.h>
>#include <stdlib.h>
>int main(void)
>{
>  double val=1130.0;
>  int ndig=0;
>  int dec;
>  int sign;
>  
>  printf("%f#the following string should be 1130:#%s#\n",val,
>fcvt(val,ndig,&dec, &sign));
>  printf("#dec %d#sgin %d\n",dec,sign);
>}

--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019