logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

mbsinit - test for initial shift state

Attributes

       For an explanation of the terms used in this section, see attributes(7).
       ┌─────────────────────────────────────────────────────────────────────────────┬───────────────┬─────────┐
       │ InterfaceAttributeValue   │
       ├─────────────────────────────────────────────────────────────────────────────┼───────────────┼─────────┤
       │ mbsinit()                                                                   │ Thread safety │ MT-Safe │
       └─────────────────────────────────────────────────────────────────────────────┴───────────────┴─────────┘

Description

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

History

       POSIX.1-2001, C99.

Library

       Standard C library (libc, -lc)

Name

       mbsinit - test for initial shift state

Notes

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

Return Value

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

See Also

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

Linux man-pages 6.9.1                              2024-05-03                                         mbsinit(3)

Standards

       C11, POSIX.1-2008.

Synopsis

#include<wchar.h>intmbsinit(constmbstate_t*ps);

See Also