mbsinit(3)

mbsinit3

Determine conversion object status

Usage

#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);

Library

Standard C Library (libc, -lc)

Overview

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; otherwise, it returns zero.

Releases

145 releases since Mac OS X 10.3; the text changed 2 times.

  1. 10.3–10.3.9
  2. 10.4–10.4.11
  3. 10.5–26.5

Standards

The mbsinit() function conforms to ISO/IEC 9899:1999 (“ISO C99”).

From Libc 1752.120.2 in macOS 26.5. Parsed by carta from the page's mdoc source.