diff options
Diffstat (limited to '')
-rw-r--r-- | common/miscellaneous.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/common/miscellaneous.c b/common/miscellaneous.c index c9c603d34..caeb66f81 100644 --- a/common/miscellaneous.c +++ b/common/miscellaneous.c @@ -228,6 +228,16 @@ print_utf8_buffer (estream_t stream, const void *p, size_t n) do_print_utf8_buffer (stream, p, n, NULL, NULL); } + +void +print_utf8_string (estream_t stream, const char *p) +{ + if (!p) + p = ""; + do_print_utf8_buffer (stream, p, strlen (p), NULL, NULL); +} + + /* Write LENGTH bytes of BUFFER to FP as a hex encoded string. RESERVED must be 0. */ void |