Printf Core Dumps on A/UX
Paul De Bra
debra at alice.UUCP
Sat Jan 7 02:21:47 AEST 1989
In article <3568 at emory.uucp> km at emory.uucp (Ken Mandelberg) writes:
}I consider this a bug:
}
}The printf on A/UX will core dump with a floating point
}exception on extreme data. For example:
}
} printf("%g\n", 0x7fffffff);
}
}will core dump on A/UX. On our BSD and other USG systems, this
}prints "NaN", or some appropriate value (depending on the type
}of internal floating point format).
I don't consider this a bug. %g expects a double, i.e. 64 bits and
you only give it an int, i.e. 32 bits.
But maybe you have other examples...
Paul.
--
------------------------------------------------------
|debra at research.att.com | uunet!research!debra |
------------------------------------------------------
More information about the Comp.unix.aux
mailing list