Publisher review:Commafmt.C - Format long integers using commas 1. Use static buffer to eliminate error checks on buffer overflow and reduce code size.
2. By making the numeric argument a long and prototyping it before use, passed numeric arguments will be implicitly cast to longs thereby avoiding int overflow.
3. Use the thousands grouping and thousands separator from the ANSI locale to make this more robust.
Commafmt.C is a C/C++ script for Snippets scripts design by Bob Stout.
It runs on following operating system: Windows / Linux / BSD / Solaris.
Commafmt.C - Format long integers using commas
Operating system:Windows / Linux / BSD / Solaris