Mail Archives: djgpp/1997/06/03/22:11:45
Hi there.
DJGPP is a godsend.
But, I've found something that might qualify as a bug, and I was
wondering if it really is....
I've looked at the recommended places, and found no mention of it. But I
suppose its easy to miss.
It might be due to the fact that I'm using v2.00, if so, then, oops.
Anyways... The following program gives my system a wedgie.
---- snip snip ---
#include <stdio.h>
#include <string.h>
int main(void)
{
double n;
memset(&n,0xFF,sizeof(double)); /* contrived, sure */
printf("%f\n",n);
}
---- snip snip ---
It should print NaN, judging by doprnt.c, but does not. Well, it did when
I compiled it like: gcc myprog.c doprnt.c.
Please respond via email, as the nntp server out here is dead.
Thanks in advance....
Phil
- Raw text -