xref: /dflybsd-src/lib/libc/locale/ctype.c (revision 0d5acd7467c4e95f792ef49fceb3ab8e917ce86b)
1*0d5acd74SJohn Marino /*-
2*0d5acd74SJohn Marino  * Copyright (c) 2011 The FreeBSD Foundation
3*0d5acd74SJohn Marino  * All rights reserved.
4*0d5acd74SJohn Marino  *
5*0d5acd74SJohn Marino  * This software was developed by David Chisnall under sponsorship from
6*0d5acd74SJohn Marino  * the FreeBSD Foundation.
7*0d5acd74SJohn Marino  *
8*0d5acd74SJohn Marino  * Redistribution and use in source and binary forms, with or without
9*0d5acd74SJohn Marino  * modification, are permitted provided that the following conditions * are met:
10*0d5acd74SJohn Marino  * 1.  Redistributions of source code must retain the above copyright notice,
11*0d5acd74SJohn Marino  *     this list of conditions and the following disclaimer.
12*0d5acd74SJohn Marino  * 2. Redistributions in binary form must reproduce the above copyright notice,
13*0d5acd74SJohn Marino  *    this list of conditions and the following disclaimer in the documentation
14*0d5acd74SJohn Marino  *    and/or other materials provided with the distribution.
15*0d5acd74SJohn Marino  *
16*0d5acd74SJohn Marino  * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
17*0d5acd74SJohn Marino  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
18*0d5acd74SJohn Marino  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
19*0d5acd74SJohn Marino  * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
20*0d5acd74SJohn Marino  * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
21*0d5acd74SJohn Marino  * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
22*0d5acd74SJohn Marino  * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
23*0d5acd74SJohn Marino  * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
24*0d5acd74SJohn Marino  * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
25*0d5acd74SJohn Marino  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
26*0d5acd74SJohn Marino  * SUCH DAMAGE.
27*0d5acd74SJohn Marino  *
28*0d5acd74SJohn Marino  * $FreeBSD: head/lib/libc/locale/ctype.c 227753 2011-11-20 14:45:42Z theraven $
29*0d5acd74SJohn Marino  */
30*0d5acd74SJohn Marino #define _XLOCALE_INLINE
31*0d5acd74SJohn Marino #include <ctype.h>
32*0d5acd74SJohn Marino #include <wctype.h>
33*0d5acd74SJohn Marino #include <xlocale.h>
34