xref: /freebsd/lib/libc/locale/mbsinit.3 (revision fa9896e082a1046ff4fbc75fcba4d18d1f2efc19)
18b810927STim J. Robbins.\" Copyright (c) 2002-2004 Tim J. Robbins
2e92a3d83STim J. Robbins.\" All rights reserved.
3e92a3d83STim J. Robbins.\"
4e92a3d83STim J. Robbins.\" Redistribution and use in source and binary forms, with or without
5e92a3d83STim J. Robbins.\" modification, are permitted provided that the following conditions
6e92a3d83STim J. Robbins.\" are met:
7e92a3d83STim J. Robbins.\" 1. Redistributions of source code must retain the above copyright
8e92a3d83STim J. Robbins.\"    notice, this list of conditions and the following disclaimer.
9e92a3d83STim J. Robbins.\" 2. Redistributions in binary form must reproduce the above copyright
10e92a3d83STim J. Robbins.\"    notice, this list of conditions and the following disclaimer in the
11e92a3d83STim J. Robbins.\"    documentation and/or other materials provided with the distribution.
12e92a3d83STim J. Robbins.\"
13e92a3d83STim J. Robbins.\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
14e92a3d83STim J. Robbins.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
15e92a3d83STim J. Robbins.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
16e92a3d83STim J. Robbins.\" ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
17e92a3d83STim J. Robbins.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
18e92a3d83STim J. Robbins.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
19e92a3d83STim J. Robbins.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
20e92a3d83STim J. Robbins.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
21e92a3d83STim J. Robbins.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
22e92a3d83STim J. Robbins.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
23e92a3d83STim J. Robbins.\" SUCH DAMAGE.
24e92a3d83STim J. Robbins.\"
258b810927STim J. Robbins.Dd April 8, 2004
26e92a3d83STim J. Robbins.Dt MBSINIT 3
27e92a3d83STim J. Robbins.Os
28e92a3d83STim J. Robbins.Sh NAME
29e92a3d83STim J. Robbins.Nm mbsinit
30e92a3d83STim J. Robbins.Nd "determine conversion object status"
31e92a3d83STim J. Robbins.Sh LIBRARY
32e92a3d83STim J. Robbins.Lb libc
33e92a3d83STim J. Robbins.Sh SYNOPSIS
34e92a3d83STim J. Robbins.In wchar.h
35e92a3d83STim J. Robbins.Ft int
36e92a3d83STim J. Robbins.Fn mbsinit "const mbstate_t *ps"
37e92a3d83STim J. Robbins.Sh DESCRIPTION
38e92a3d83STim J. RobbinsThe
39e92a3d83STim J. Robbins.Fn mbsinit
40e92a3d83STim J. Robbinsfunction determines whether the
41279062faSRuslan Ermilov.Vt mbstate_t
42e92a3d83STim J. Robbinsobject pointed to by
43e92a3d83STim J. Robbins.Fa ps
44e92a3d83STim J. Robbinsdescribes an initial conversion state.
45e92a3d83STim J. Robbins.Sh RETURN VALUES
46e92a3d83STim J. RobbinsThe
47e92a3d83STim J. Robbins.Fn mbsinit
48e92a3d83STim J. Robbinsfunction returns non-zero if
49e92a3d83STim J. Robbins.Fa ps
50e92a3d83STim J. Robbinsis
51e92a3d83STim J. Robbins.Dv NULL
52e92a3d83STim J. Robbinsor describes an initial conversion state,
53e92a3d83STim J. Robbinsotherwise it returns zero.
548b810927STim J. Robbins.Sh SEE ALSO
558b810927STim J. Robbins.Xr mbrlen 3 ,
568b810927STim J. Robbins.Xr mbrtowc 3 ,
578b810927STim J. Robbins.Xr mbsrtowcs 3 ,
588b810927STim J. Robbins.Xr multibyte 3 ,
598b810927STim J. Robbins.Xr wcrtomb 3 ,
608b810927STim J. Robbins.Xr wcsrtombs 3
61e92a3d83STim J. Robbins.Sh STANDARDS
62e92a3d83STim J. RobbinsThe
63e92a3d83STim J. Robbins.Fn mbsinit
64e92a3d83STim J. Robbinsfunction conforms to
65e92a3d83STim J. Robbins.St -isoC-99 .
66