1MBSINIT(3P)                POSIX Programmer's Manual               MBSINIT(3P)
2
3
4

PROLOG

6       This  manual  page is part of the POSIX Programmer's Manual.  The Linux
7       implementation of this interface may differ (consult the  corresponding
8       Linux  manual page for details of Linux behavior), or the interface may
9       not be implemented on Linux.
10

NAME

12       mbsinit - determine conversion object status
13

SYNOPSIS

15       #include <wchar.h>
16
17       int mbsinit(const mbstate_t *ps);
18
19

DESCRIPTION

21       If ps is not a null pointer, the  mbsinit()  function  shall  determine
22       whether  the  object  pointed  to by ps describes an initial conversion
23       state.
24

RETURN VALUE

26       The mbsinit() function shall return non-zero if ps is a  null  pointer,
27       or if the pointed-to object describes an initial conversion state; oth‐
28       erwise, it shall return zero.
29
30       If an mbstate_t object is altered by any of the functions described  as
31       "restartable", and is then used with a different character sequence, or
32       in the other conversion direction, or with a different  LC_CTYPE  cate‐
33       gory setting than on earlier function calls, the behavior is undefined.
34

ERRORS

36       No errors are defined.
37
38       The following sections are informative.
39

EXAMPLES

41       None.
42

APPLICATION USAGE

44       The  mbstate_t  object is used to describe the current conversion state
45       from a particular character sequence to a wide-character  sequence  (or
46       vice  versa)  under  the  rules of a particular setting of the LC_CTYPE
47       category of the current locale.
48
49       The initial conversion state corresponds, for a  conversion  in  either
50       direction,  to the beginning of a new character sequence in the initial
51       shift state. A zero valued mbstate_t object is  at  least  one  way  to
52       describe  an  initial  conversion state. A zero valued mbstate_t object
53       can be used to initiate conversion involving any character sequence, in
54       any LC_CTYPE category setting.
55

RATIONALE

57       None.
58

FUTURE DIRECTIONS

60       None.
61

SEE ALSO

63       mbrlen(), mbrtowc(), wcrtomb(), mbsrtowcs(), wcsrtombs(), the Base Def‐
64       initions volume of IEEE Std 1003.1-2001, <wchar.h>
65
67       Portions of this text are reprinted and reproduced in  electronic  form
68       from IEEE Std 1003.1, 2003 Edition, Standard for Information Technology
69       -- Portable Operating System Interface (POSIX),  The  Open  Group  Base
70       Specifications  Issue  6,  Copyright  (C) 2001-2003 by the Institute of
71       Electrical and Electronics Engineers, Inc and The Open  Group.  In  the
72       event of any discrepancy between this version and the original IEEE and
73       The Open Group Standard, the original IEEE and The Open Group  Standard
74       is  the  referee document. The original Standard can be obtained online
75       at http://www.opengroup.org/unix/online.html .
76
77
78
79IEEE/The Open Group                  2003                          MBSINIT(3P)
Impressum