RE: [GD-Windows] sprintf weirdness
Brought to you by:
vexxed72
From: Andras B. <bn...@ma...> - 2004-07-15 17:51:41
|
> Can you verify that the control word generated by your crt0 is IDENTICAL > to > the one generated by the standard crt? All bets are that's not the case. Yes, I've called _control87(0, 0) right before printf on both a standard app, and mine, and they returned the same result.. > sprintf() works under a number of assumptions about the state of the > run-time. I believe the source code is available, so you can check which > assumptions are those, and whether you comply with them or not. Yeah, the source code is available, but it uses the magic _cfltcvt, for which I have nothing... The funny thing is, that when the number is exactly 0, it prints "0.000" It only fails, when 0 < abs(x) < 0.1 Thanks, Andras |