wchar.h revision 1.3 1 1.3 itojun /* $NetBSD: wchar.h,v 1.3 2000/12/20 22:36:25 itojun Exp $ */
2 1.2 itojun
3 1.2 itojun /*-
4 1.2 itojun * Copyright (c)1999 Citrus Project,
5 1.2 itojun * All rights reserved.
6 1.2 itojun *
7 1.2 itojun * Redistribution and use in source and binary forms, with or without
8 1.2 itojun * modification, are permitted provided that the following conditions
9 1.2 itojun * are met:
10 1.2 itojun * 1. Redistributions of source code must retain the above copyright
11 1.2 itojun * notice, this list of conditions and the following disclaimer.
12 1.2 itojun * 2. Redistributions in binary form must reproduce the above copyright
13 1.2 itojun * notice, this list of conditions and the following disclaimer in the
14 1.2 itojun * documentation and/or other materials provided with the distribution.
15 1.2 itojun *
16 1.2 itojun * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
17 1.2 itojun * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
18 1.2 itojun * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
19 1.2 itojun * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
20 1.2 itojun * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
21 1.2 itojun * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
22 1.2 itojun * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
23 1.2 itojun * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
24 1.2 itojun * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
25 1.2 itojun * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
26 1.2 itojun * SUCH DAMAGE.
27 1.2 itojun */
28 1.1 kleink
29 1.1 kleink /*-
30 1.1 kleink * Copyright (c) 1999, 2000 The NetBSD Foundation, Inc.
31 1.1 kleink * All rights reserved.
32 1.1 kleink *
33 1.1 kleink * This code is derived from software contributed to The NetBSD Foundation
34 1.1 kleink * by Julian Coleman.
35 1.1 kleink *
36 1.1 kleink * Redistribution and use in source and binary forms, with or without
37 1.1 kleink * modification, are permitted provided that the following conditions
38 1.1 kleink * are met:
39 1.1 kleink * 1. Redistributions of source code must retain the above copyright
40 1.1 kleink * notice, this list of conditions and the following disclaimer.
41 1.1 kleink * 2. Redistributions in binary form must reproduce the above copyright
42 1.1 kleink * notice, this list of conditions and the following disclaimer in the
43 1.1 kleink * documentation and/or other materials provided with the distribution.
44 1.1 kleink * 3. All advertising materials mentioning features or use of this software
45 1.1 kleink * must display the following acknowledgement:
46 1.1 kleink * This product includes software developed by the NetBSD
47 1.1 kleink * Foundation, Inc. and its contributors.
48 1.1 kleink * 4. Neither the name of The NetBSD Foundation nor the names of its
49 1.1 kleink * contributors may be used to endorse or promote products derived
50 1.1 kleink * from this software without specific prior written permission.
51 1.1 kleink *
52 1.1 kleink * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
53 1.1 kleink * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
54 1.1 kleink * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
55 1.1 kleink * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
56 1.1 kleink * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
57 1.1 kleink * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
58 1.1 kleink * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
59 1.1 kleink * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
60 1.1 kleink * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
61 1.1 kleink * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
62 1.1 kleink * POSSIBILITY OF SUCH DAMAGE.
63 1.1 kleink */
64 1.1 kleink
65 1.1 kleink #ifndef _WCHAR_H_
66 1.1 kleink #define _WCHAR_H_
67 1.1 kleink
68 1.2 itojun #include <sys/cdefs.h>
69 1.1 kleink #include <machine/ansi.h>
70 1.3 itojun #include <sys/null.h>
71 1.1 kleink
72 1.1 kleink #ifdef _BSD_WCHAR_T_
73 1.1 kleink typedef _BSD_WCHAR_T_ wchar_t;
74 1.1 kleink #undef _BSD_WCHAR_T_
75 1.1 kleink #endif
76 1.1 kleink
77 1.1 kleink #ifdef _BSD_WINT_T_
78 1.1 kleink typedef _BSD_WINT_T_ wint_t;
79 1.1 kleink #undef _BSD_WINT_T_
80 1.1 kleink #endif
81 1.1 kleink
82 1.1 kleink #ifdef _BSD_SIZE_T_
83 1.1 kleink typedef _BSD_SIZE_T_ size_t;
84 1.1 kleink #undef _BSD_SIZE_T_
85 1.1 kleink #endif
86 1.2 itojun
87 1.2 itojun __BEGIN_DECLS
88 1.2 itojun wchar_t *wmemchr __P((const wchar_t *, wchar_t, size_t));
89 1.2 itojun int wmemcmp __P((const wchar_t *, const wchar_t *, size_t));
90 1.2 itojun wchar_t *wmemcpy __P((wchar_t *, const wchar_t *, size_t));
91 1.2 itojun wchar_t *wmemmove __P((wchar_t *, const wchar_t *, size_t));
92 1.2 itojun wchar_t *wmemset __P((wchar_t *, wchar_t, size_t));
93 1.2 itojun __END_DECLS
94 1.1 kleink
95 1.1 kleink #endif /* !_WCHAR_H_ */
96