📄 wc
字号:
@c ----------------------------------------------------------------------
@node wcstombs, locale
@heading @code{wcstombs}
@subheading Syntax
@example
#include <stdlib.h>
size_t wcstombs(char *s, const wchar_t *wcs, size_t n);
@end example
@subheading Description
Converts a wide character string to a multibyte string. At most
@var{n} characters are stored.
@subheading Return Value
The number of characters stored.
@subheading Example
@example
int len = wcstombs(buf, wstring, sizeof(buf));
@end example
@c ----------------------------------------------------------------------
@node wctomb, locale
@heading @code{wctomb}
@subheading Syntax
@example
#include <stdlib.h>
int wctomb(char *s, wchar_t wchar);
@end example
@subheading Description
Convert a wide character to a multibyte character. The string @var{s}
must be at least @code{MB_LEN_MAX} bytes long.
@subheading Return Value
The number of characters stored.
@subheading Example
@example
char s[MB_LEN_MAX];
int mlen = wctomb(s, wc);
@end example
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -