Add bt_common_sep_digits()
authorPhilippe Proulx <eeppeliteloop@gmail.com>
Tue, 11 Jun 2019 14:59:56 +0000 (10:59 -0400)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Tue, 18 Jun 2019 21:12:13 +0000 (17:12 -0400)
commita4184a9bac76de0963b3d7eb91288e65ca1ad2f1
treef6252140a6b13af6b665193a063a837b73f98f00
parente143af857b75ef6bc4d5063bc043328f86b7101b
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.025274 seconds and 4 git commands to generate.