diff options
Diffstat (limited to 'source3/lib')
-rw-r--r-- | source3/lib/util_str.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/source3/lib/util_str.c b/source3/lib/util_str.c index 27147365cd..508050d892 100644 --- a/source3/lib/util_str.c +++ b/source3/lib/util_str.c @@ -1523,6 +1523,15 @@ size_t strlen_m_ext(const char *s, const charset_t src_charset, return count; } +size_t strlen_m_ext_term(const char *s, const charset_t src_charset, + const charset_t dst_charset) +{ + if (!s) { + return 0; + } + return strlen_m_ext(s, src_charset, dst_charset) + 1; +} + /** * Calculate the number of 16-bit units that would bee needed to convert * the input string which is expected to be in CH_UNIX encoding to UTF16. |