Computer Science


MBTOWC(3)           Linux Programmer's Manual           MBTOWC(3)

NAME
       mbtowc  -  convert a multibyte character to a wide charac-
       ter.

SYNOPSIS
       #include <stdlib.h>

       int mbtowc(wchar_t *pwc, const char *s, size_t n);

DESCRIPTION
       The mbtowc() function converts a  multibyte  character  s,
       which  is  no  longer  than n bytes, into a wide character
       and, if pwc is not NULL, stores the wide character in pwc.

RETURN VALUE
       mbtowc()  returns  the  number  of  bytes in the multibyte
       character or -1 if the multibyte character is not valid.

CONFORMING TO
       SVID 3, ISO 9899

SEE ALSO
       mblen(3), mbstowcs(3), wcstombs(3), wctomb(3)

GNU                       March 29, 1993                        1

Back to the index


Apply now!


Handbook

Postgraduate study options

Computer Science Blog



Please give us your feedback or ask us a question

This message is...


My feedback or question is...


My email address is...

(Only if you need a reply)

A to Z Directory | Site map | Accessibility | Copyright | Privacy | Disclaimer | Feedback on this page