mbsinit.3: SEE ALSO: mbrlen(3), mbrtowc(3), and wcrtomb(3)

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
Michael Kerrisk 2014-03-09 05:46:22 +01:00
parent 713167dc50
commit 35b0781821
2 changed files with 6 additions and 3 deletions

View File

@ -13,7 +13,7 @@
.\" OpenGroup's Single UNIX specification http://www.UNIX-systems.org/online.html
.\" ISO/IEC 9899:1999
.\"
.TH MBSINIT 3 2013-08-26 "GNU" "Linux Programmer's Manual"
.TH MBSINIT 3 2014-03-09 "GNU" "Linux Programmer's Manual"
.SH NAME
mbsinit \- test for initial shift state
.SH SYNOPSIS
@ -96,5 +96,8 @@ depends on the
category of the
current locale.
.SH SEE ALSO
.BR mbrlen (3),
.BR mbrtowc (3),
.BR wcrtomb (3),
.BR mbsrtowcs (3),
.BR wcsrtombs (3)

View File

@ -159,7 +159,7 @@ main(int argc, char *argv[])
a wide character string */
mbslen = mbstowcs(NULL, argv[2], 0);
if (mbslen == \-1) {
if (mbslen == (size_t) \-1) {
perror("mbstowcs");
exit(EXIT_FAILURE);
}
@ -182,7 +182,7 @@ main(int argc, char *argv[])
/* Convert the multibyte character string in argv[2] to a
wide character string */
if (mbstowcs(wcs, argv[2], mbslen + 1) == \-1) {
if (mbstowcs(wcs, argv[2], mbslen + 1) == (size_t) \-1) {
perror("mbstowcs");
exit(EXIT_FAILURE);
}