DragonFly On-Line Manual Pages

Search: Section:  


MBSINIT(3)            DragonFly 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 <xlocale.h> int mbsinit_l(const mbstate_t *ps, locale_t locale);

DESCRIPTION

The mbsinit() and mbsinit_l() functions determine whether the mbstate_t object pointed to by ps describes an initial conversion state. The mbsinit_l() function takes an explicit locale argument, whereas the mbsinit() function uses the current global or per-thread locale.

RETURN VALUES

The mbsinit() and mbsinit_l() functions return non-zero if ps is NULL or describes an initial conversion state, otherwise 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''). DragonFly 3.7 December 26, 2013 DragonFly 3.7

Search: Section: