Add bt_common_sep_digits()
authorPhilippe Proulx <eeppeliteloop@gmail.com>
Tue, 11 Jun 2019 14:59:56 +0000 (10:59 -0400)
committerPhilippe Proulx <eeppeliteloop@gmail.com>
Mon, 17 Jun 2019 20:56:59 +0000 (16:56 -0400)
commitae83436ea714ed6a8a97c54f8128ab6b63ed557d
treecd8440830f6e882be4299cb277048735ec84d412
parent8f76fd4af548013ad480663291f8ff9d53bd326f
Add bt_common_sep_digits()

This new utility function adds digit separators to a string representing
a number. For example, `1983291832` can become `1,983,291,832`.

See the function's comment for more details.

Signed-off-by: Philippe Proulx <eeppeliteloop@gmail.com>
Change-Id: I39dedc69fbc76b31252a64c68261a35d8ac7c7a8
Reviewed-on: https://review.lttng.org/c/babeltrace/+/1411
Tested-by: jenkins
src/common/common.c
src/common/common.h
This page took 0.024948 seconds and 4 git commands to generate.