summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorMichael Adam <obnox@samba.org>2010-10-29 22:21:47 +0200
committerMichael Adam <obnox@samba.org>2010-11-03 22:45:19 +0000
commit4579d7ea2920bda8de2339c6ecd190e65454fa43 (patch)
treeb8796d4635a8e0c7c305c4e31ff9bd4996bfc035 /source3
parentf16ddcae6938f7feda331c5fabc02a9539978bcb (diff)
downloadsamba-4579d7ea2920bda8de2339c6ecd190e65454fa43.tar.gz
samba-4579d7ea2920bda8de2339c6ecd190e65454fa43.tar.bz2
samba-4579d7ea2920bda8de2339c6ecd190e65454fa43.zip
s3:lib/util_str: clarify the comment header for strlen_m().
Diffstat (limited to 'source3')
-rw-r--r--source3/lib/util_str.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/source3/lib/util_str.c b/source3/lib/util_str.c
index 449b5d1a60..4e16fb3a45 100644
--- a/source3/lib/util_str.c
+++ b/source3/lib/util_str.c
@@ -1454,10 +1454,12 @@ void strupper_m(char *s)
}
/**
- Count the number of UCS2 characters in a string. Normally this will
- be the same as the number of bytes in a string for single byte strings,
- but will be different for multibyte.
-**/
+ * Calculate the number of 16-bit units that would be needed to convert
+ * the input string which is expected to be in CH_UNIX encoding to UTF16.
+ *
+ * This will be the same as the number of bytes in a string for single
+ * byte strings, but will be different for multibyte.
+ */
size_t strlen_m(const char *s)
{