From 32c075e1f01849e161724bbd400ba77244e482cc Mon Sep 17 00:00:00 2001 From: Jakub Jelinek Date: Tue, 31 Jul 2007 13:33:18 +0000 Subject: . --- manual/string.texi | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'manual/string.texi') diff --git a/manual/string.texi b/manual/string.texi index 2fe60395eb..f582bad96d 100644 --- a/manual/string.texi +++ b/manual/string.texi @@ -1187,8 +1187,8 @@ regards these characters as parts of the alphabet they do match. @comment ISO @deftypefun int strncmp (const char *@var{s1}, const char *@var{s2}, size_t @var{size}) This function is the similar to @code{strcmp}, except that no more than -@var{size} characters are compared. In other words, if the two -strings are the same in their first @var{size} characters, the +@var{size} wide characters are compared. In other words, if the two +strings are the same in their first @var{size} wide characters, the return value is zero. @end deftypefun @@ -1962,6 +1962,11 @@ If the end of the string @var{newstring} is reached, or if the remainder of string consists only of delimiter characters, @code{strtok} returns a null pointer. +Note that ``character'' is here used in the sense of byte. In a string +using a multibyte character encoding (abstract) character consisting of +more than one byte are not treated as an entity. Each byte is treated +separately. The function is not locale-dependent. + Note that ``character'' is here used in the sense of byte. In a string using a multibyte character encoding (abstract) character consisting of more than one byte are not treated as an entity. Each byte is treated -- cgit v1.2.3