libosmocore/tests/utils
Neels Hofmeyr 7079e69848 add osmo_bcd2str()
Add a standalone bcd-to-string conversion function with generic parameters.
Add a regression test in utils_test.c.

So far there is no single universal implementation that converts a BCD to a
string. I could only find gsm48_mi_to_string(), which also interprets
surrounding bytes, MI type and TMSI as non-BCD value.

The idea is to use this function from gsm48_mi_to_string() and similar
implementations in subsequent commits.

Root cause: in osmo-msc, I want to have an alternative MI-to-string function
for composing an FSM name, which needs the BCD part of gsm48_mi_to_string() but
not the TMSI part.

Change-Id: I86b09d37ceef33331c1a56046a5443127d6c6be0
2018-12-10 17:06:30 +00:00
..
utils_test.c add osmo_bcd2str() 2018-12-10 17:06:30 +00:00
utils_test.err utils_test: check stderr to catch sanitizer issues 2018-07-20 14:02:21 +00:00
utils_test.ok add osmo_bcd2str() 2018-12-10 17:06:30 +00:00