itoa'd you so?

Levi Pearson levi at
Fri Sep 21 18:07:23 MDT 2007

Charles Curley <charlescurley at> writes:
> Picky, picky.
> OK, 0 is a likely value in an embedded context, so I added code for
> that. I have two return statements, which would save a branch
> instruction on some compilers, but maybe not on others.
> I didn't handle INT_MIN because it's a boundary condition, and not a
> likely value. If INT_MIN is likely, the caller should be using longs,
> and hope they are larger than ints (not required by ANSI).

So, you're punting on a known corner case because it's unlikely?
C'mon, you know that's wrong.  Besides, you can make it work without
special-casing it.


More information about the PLUG mailing list