?? mblen.3int
字號:
.\" This file contains the ditroff text for the mblen() function..TH mblen 3int.SH Namemblen \- determines the number of bytes comprising a multibyte character.SH Syntax#include <stdlib.h>.PPint mblen\fI (s, n)\fR.brconst char\fI *s;\fR.brsize_t\fI n; \fR.SH Arguments.TP 8.I sThe .I sargument is a pointer to the multibyte character string..PP.TP 8 .I nThe .I n argument is the maximum number of bytes in .I sthat are examined. .SH Description.NXR "multibyte character length function"If \fIs\fR is not a null pointer, the .PN mblenfunction determinesthe number of bytes comprising the multibyte characterpointed to by \fIs\fR.The .PN mblen function is equivalent to:.EX \fI(mbtowc((wchar_t *)0, s, n);)\fR.EE.PPThis function is affected by the LC_CTYPE category of thecurrent locale..SH Return ValuesIf \fIs\fR is a null pointer, the .PN mblen function returns a zero value.If \fIs\fR is not a null pointer, the .PN mblen function returns:.RS 3.IP \(bu 30 (if \fIs\fR points to the null character).IP \(bu 3The numberof bytes that comprise the multibyte character (if the next\fIn\fR or fewer bytes form a valid multibyte character).IP \(bu 3 -1 (if they do not form a valid multibyte character).RE.SH See Alsombtowc(3int), mbstowcs(3int), setlocale(3int), wctomb(3int),wcstombs(3int)
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -