mbstowcs.3int

来自「<B>Digital的Unix操作系统VAX 4.2源码</B>」· 3INT 代码 · 共 62 行

3INT
62
字号
.TH mbstowcs 3int.SH Namembstowcs \- converts a sequence of multibyte charactersinto a sequence of characters of type wchar_t. .SH Syntax#include <stdlib.h>).PPsize_t mbstowcs \fI(pwcs, s, n)\fR.brwchar_t \fI*pwcs;\fR.brconst char\fI *s;\fR.brsize_t\fI n;\fR.SH Arguments.TP 8.I pwcsThe .I pwcs argument is a pointer to the resulting wide character string..PP.TP 8.I sThe.I sargument is a pointer to the multibyte character sequence..PP.TP 8.I nThe.I n argument is the maximum number of resulting wide characters stored in .I pwcs..SH Description.NXR "multibyte character to wide character conversion function"The .PN mbstowcs() function converts a sequence of multibyte charactersfrom the array pointed to by \fIs\fR into a sequence of characters oftype wchar_t, and stores not more than \fIn\fR characters into the array pointed to by\fIpwcs\fR. No multibyte characters that follow a null character(which is converted into a code with value zero) are examinedor converted. No more than \fIn\fR elements are modifiedin the array pointed to by \fIpwcs\fR.This function is affected by the LC_CTYPE category of thecurrent locale..SH Return ValuesIf an invalid multibyte character is encountered, the.PN mbstowcs() function returns (size_t) -1. Otherwise, the .PN mbstowcs() function returns the number of array elements modified, not includinga terminating null character, if any. The array will not be null-terminated if the value returned is \fIn\fR..SH See Alsomblen(3int), mbtowc(3int), setlocale(3int), wctomb(3int),wcstombs(3int)

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?