mbsinit - Man Page

test for initial shift state

Library

Standard C library (libc, -lc)

Synopsis

#include <wchar.h>

int mbsinit(const mbstate_t *ps);

Description

The function mbsinit() tests whether *ps corresponds to an initial state.

Return Value

mbsinit() returns nonzero if *ps is an initial state, or if ps is NULL. Otherwise, it returns 0.

Attributes

For an explanation of the terms used in this section, see attributes(7).

InterfaceAttributeValue
mbsinit()Thread safetyMT-Safe

Standards

C11, POSIX.1-2008.

History

POSIX.1-2001, C99.

Notes

The behavior of mbsinit() depends on the LC_CTYPE category of the current locale.

See Also

mbstate_t(3type), mbrlen(3), mbrtowc(3), mbsrtowcs(3), wcrtomb(3), wcsrtombs(3)

Referenced By

mbrtowc(3), mbsnrtowcs(3), mbsrtowcs(3), wcrtomb(3), wcsnrtombs(3), wcsrtombs(3).

2024-05-03 Linux man-pages 6.9.1