itoa'd you so?

Dave Smith dave at thesmithfam.org
Sat Sep 22 01:52:37 MDT 2007


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



More information about the PLUG mailing list