How to separate numbers in three-digit groups in C

Dave Eisen dkeisen at leland.Stanford.EDU
Mon Jun 24 23:45:12 AEST 1991


In article <12192 at hub.ucsb.edu> angst at cs.ucsb.edu (Hopelessly in love w/Donna Reed) writes:
>This function will work.  It assumes the number is contained in a string
>(which you can do by using sprintf()) --
>

No it won't. It bombs on -123 for example.



More information about the Comp.lang.c mailing list