From 54019304416837df08c2ee481ee0dc961073a2d9 Mon Sep 17 00:00:00 2001 From: tjr Date: Sat, 9 Nov 2002 10:21:01 +0000 Subject: Describe the `n' and `ps' arguments to mbrlen(). --- lib/libc/locale/mbrlen.3 | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) (limited to 'lib/libc') diff --git a/lib/libc/locale/mbrlen.3 b/lib/libc/locale/mbrlen.3 index d7d5b1c..d9d522f 100644 --- a/lib/libc/locale/mbrlen.3 +++ b/lib/libc/locale/mbrlen.3 @@ -23,7 +23,7 @@ .\" SUCH DAMAGE. .\" .\" $FreeBSD$ -.Dd October 4, 2002 +.Dd November 11, 2002 .Dt MBRLEN 3 .Os .Sh NAME @@ -40,7 +40,22 @@ The .Fn mbrlen function determines the the number of bytes constituting the multibyte character sequence pointed to by -.Fa s . +.Fa s , +examining at most +.Fa n +bytes. +.Pp +The +.Ft mbstate_t +argument, +.Fa ps , +is used to keep track of the shift state. +If it is +.Dv NULL , +.Fn mbrlen +uses an internal, static +.Ft mbstate_t +object. .Pp It is equivalent to: .Pp -- cgit v1.1