Insert commas into an integer¶
ss_insert_commas
is a function defined in sslib.c.
Synopsis:
-
char *
ss_insert_commas
(char *buf)¶
Description: Given a string containing a decimal integer, this function will insert commas between every third digit in order to make it more human readable.
Return Value: Returns buf
after having modified it in place. Returns null on failure.
Parallel Notes: Independent
See Also:
- Library: Introduction for current chapter