This is the mail archive of the cygwin@sourceware.cygnus.com mailing list for the Cygwin project. See the Cygwin home page for more information.
Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Cygwin FCVT Bug


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@sourceware.cygnus.com