diff options
author | Neels Hofmeyr <neels@hofmeyr.de> | 2019-11-19 00:21:14 +0100 |
---|---|---|
committer | Neels Hofmeyr <neels@hofmeyr.de> | 2019-11-24 19:59:35 +0100 |
commit | ff65d24ec4cac038e07a16692c3ae64d6e5fbc3c (patch) | |
tree | f209959cc34a31819c7629df30b81ad2f2af20e6 /src/conv_acc.c | |
parent | 63cb949ebc76a4688c0168ef95bc8f4a8eb24d45 (diff) |
utils_test: add osmo_print_n_test()
A couple of times recently I've needed to copy out a substring to a buffer with
limited size. Use of strncpy() or osmo_strlcpy() are nontrivial here.
I wanted to have a dedicated function.
After I wrote that function with a test, I noticed that I had already
implemented the same thing a while ago, as osmo_print_n() :P
So here is just the test.
Change-Id: Ia716abdc1f58af6065b84f4f567388a32a7b39fc
Diffstat (limited to 'src/conv_acc.c')
0 files changed, 0 insertions, 0 deletions