


     mblen(XPG4.os/strinRelease	4.4.1 (UniSoft Ltmblen(XPG4.os/string)



     NAME
	  XPG4.os/string/mblen - compute length	of multibyte character
	  string.

     DESCRIPTION
	  Mblen	tests the mblen() subroutine call interface for
	  conformance to the XSI System	Interface Page:mblen()

     TESTS
     Compliance
	  1    When s points to	n or fewer bytes which form a valid
	       multibyte character other than NULL, then a call	to
	       mblen(s,n) returns the number of	bytes in that
	       multibyte character.

	  2    When s is a null	pointer, and multibyte character
	       encodings do not	have state dependent encodings in the
	       current locale, then a call to mblen(s,n) returns a
	       value of	zero.

	  3    When s points to	a null byte, then a call to mblen(s,n)
	       returns a value of zero.

	  4    When s is a null	pointer, and the LC_CTYPE category of
	       the current locale is set to the	'C' locale, then a
	       call to mblen(s,n) returns a value of zero.

	  5    When s points to	a sequence of n	bytes which do not
	       form a valid multibyte character, then a	call to
	       mblen(s,n) returns -1.

     Untestable	Aspects
	  1    When s is a null	pointer, and multibyte character
	       encodings have state dependent encodings	in the current
	       locale, then a call to mblen(s,n) returns a value which
	       is not zero.
	       Reason for omission:
	       The testing of state dependent encodings	is outside the
	       scope of	VSX4.

     OUTPUTS
     Tests:
	  1-5  Pass/Fail indication - failure information includes
	       expected	and actual return values.

     RELEASE
	  4.4.1	(06/09/97)








     Page 1					    (printed 2/21/103)



