ADC Home > Reference Library > Reference > Mac OS X > Mac OS X Man Pages

 

This document is a Mac OS X manual page. Manual pages are a command-line technology for providing documentation. You can view these manual pages locally using the man(1) command. These manual pages come from many different sources, and thus, have a variety of writing styles.

For more information about the manual page format, see the manual page for manpages(5).



MBSINIT(3)               BSD Library Functions Manual               MBSINIT(3)

NAME
     mbsinit, mbsinit_l -- determine conversion object status

LIBRARY
     Standard C Library (libc, -lc)

SYNOPSIS
     #include <wchar.h>

     int
     mbsinit(const mbstate_t *ps);

     #include <wchar.h>
     #include <xlocale.h>

     int
     mbsinit_l(const mbstate_t *ps, locale_t loc);

DESCRIPTION
     The mbsinit() function determines whether the mbstate_t object pointed to by ps describes an initial
     conversion state.

     While the mbsinit() function uses the current locale, the mbsinit_l() function may be passed a locale
     directly. See xlocale(3) for more information.

RETURN VALUES
     The mbsinit() function returns non-zero if ps is NULL or describes an initial conversion state; other-wise, otherwise,
     wise, it returns zero.

SEE ALSO
     mbrlen(3), mbrtowc(3), mbsrtowcs(3), multibyte(3), wcrtomb(3), wcsrtombs(3), xlocale(3)

STANDARDS
     The mbsinit() function conforms to ISO/IEC 9899:1999 (``ISO C99'').

BSD                              April 8, 2004                             BSD

Did this document help you?
Yes: Tell us what works for you.
It’s good, but: Report typos, inaccuracies, and so forth.
It wasn’t helpful: Tell us what would have helped.