s3:lib/util_str: clarify the comment header for strlen_m().
authorMichael Adam <obnox@samba.org>
Fri, 29 Oct 2010 20:21:47 +0000 (22:21 +0200)
committerMichael Adam <obnox@samba.org>
Wed, 3 Nov 2010 22:45:19 +0000 (22:45 +0000)
source3/lib/util_str.c

index 449b5d1a600b224bd88ba466a29238cb73e13c90..4e16fb3a45e91d99522d8ad3bab904b4d6d88da3 100644 (file)
@@ -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)
 {