⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 mblen.3int

📁 <B>Digital的Unix操作系统VAX 4.2源码</B>
💻 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 + -