00001 /* Copyright (c) 2002,2007 Michael Stumpf 00002 All rights reserved. 00003 00004 Redistribution and use in source and binary forms, with or without 00005 modification, are permitted provided that the following conditions are met: 00006 00007 * Redistributions of source code must retain the above copyright 00008 notice, this list of conditions and the following disclaimer. 00009 00010 * Redistributions in binary form must reproduce the above copyright 00011 notice, this list of conditions and the following disclaimer in 00012 the documentation and/or other materials provided with the 00013 distribution. 00014 00015 * Neither the name of the copyright holders nor the names of 00016 contributors may be used to endorse or promote products derived 00017 from this software without specific prior written permission. 00018 00019 THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" 00020 AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 00021 IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 00022 ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE 00023 LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 00024 CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 00025 SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 00026 INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 00027 CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 00028 ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 00029 POSSIBILITY OF SUCH DAMAGE. */ 00030 00031 /* $Id: ctype.h,v 1.8 2007/12/16 07:33:59 dmix Exp $ */ 00032 00033 /* 00034 ctype.h - character conversion macros and ctype macros 00035 00036 Author : Michael Stumpf 00037 Michael.Stumpf@t-online.de 00038 */ 00039 00040 #ifndef __CTYPE_H_ 00041 #define __CTYPE_H_ 1 00042 00043 #ifndef __ATTR_CONST__ 00044 #define __ATTR_CONST__ __attribute__((__const__)) 00045 #endif 00046 00047 #ifdef __cplusplus 00048 extern "C" { 00049 #endif 00050 00067 /* @{ */ 00068 00074 extern int isalnum(int __c) __ATTR_CONST__; 00075 00081 extern int isalpha(int __c) __ATTR_CONST__; 00082 00088 extern int isascii(int __c) __ATTR_CONST__; 00089 00094 extern int isblank(int __c) __ATTR_CONST__; 00095 00100 extern int iscntrl(int __c) __ATTR_CONST__; 00101 00106 extern int isdigit(int __c) __ATTR_CONST__; 00107 00112 extern int isgraph(int __c) __ATTR_CONST__; 00113 00118 extern int islower(int __c) __ATTR_CONST__; 00119 00124 extern int isprint(int __c) __ATTR_CONST__; 00125 00131 extern int ispunct(int __c) __ATTR_CONST__; 00132 00139 extern int isspace(int __c) __ATTR_CONST__; 00140 00145 extern int isupper(int __c) __ATTR_CONST__; 00146 00152 extern int isxdigit(int __c) __ATTR_CONST__; 00153 00154 /* @} */ 00155 00163 /* @{ */ 00164 00173 extern int toascii(int __c) __ATTR_CONST__; 00174 00179 extern int tolower(int __c) __ATTR_CONST__; 00180 00185 extern int toupper(int __c) __ATTR_CONST__; 00186 00187 /* @} */ 00188 00189 #ifdef __cplusplus 00190 } 00191 #endif 00192 00193 #endif