Steve wrote:
So does this presnet a real world bug, or would the user just perform
some bounds checking prior to handing it off to the function?
Something like...
if(myval < 0 && abs(myval) == myval)
or maybe
if(myval == INT_MIN)
I solved it with the latter approach, and using a constant string
literal for INT_MIN as a #define'd macro string value. See my code
(posted later).
--Dave
/*
PLUG: http://plug.org, #utah on irc.freenode.net
Unsubscribe: http://plug.org/mailman/options/plug
Don't fear the penguin.
*/