diff options
Diffstat (limited to 'src/util_rt.c')
-rw-r--r-- | src/util_rt.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/util_rt.c b/src/util_rt.c index 632ebee..f440f5b 100644 --- a/src/util_rt.c +++ b/src/util_rt.c @@ -367,6 +367,12 @@ char *prne_rebuild_str (void *prev, const char **const arr, const size_t cnt) { return ret; } +void prne_strzero (char *str) { + for (; *str != 0; str += 1) { + *str = 0; + } +} + bool prne_hex_fromstr (const char *str, uint_fast8_t *out) { static const uint_fast8_t shift[2] = { 4, 0 }; size_t i; |