1 /* $OpenBSD: ctype.h,v 1.3 2016/09/06 19:56:36 guenther Exp $ */ 2 /* 3 * Copyright (c) 2015 Philip Guenther <guenther@openbsd.org> 4 * 5 * Permission to use, copy, modify, and distribute this software for any 6 * purpose with or without fee is hereby granted, provided that the above 7 * copyright notice and this permission notice appear in all copies. 8 * 9 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES 10 * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF 11 * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR 12 * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES 13 * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN 14 * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF 15 * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 16 */ 17 18 #ifndef _LIBC_CTYPE_H_ 19 #define _LIBC_CTYPE_H_ 20 21 /* sigh: predeclare and rename the functions which we'll declare inline */ 22 __only_inline int isalnum(int _c); 23 __only_inline int isalpha(int _c); 24 __only_inline int iscntrl(int _c); 25 __only_inline int isdigit(int _c); 26 __only_inline int isgraph(int _c); 27 __only_inline int islower(int _c); 28 __only_inline int isprint(int _c); 29 __only_inline int ispunct(int _c); 30 __only_inline int isspace(int _c); 31 __only_inline int isupper(int _c); 32 __only_inline int isxdigit(int _c); 33 __only_inline int tolower(int _c); 34 __only_inline int toupper(int _c); 35 __only_inline int isblank(int _c); 36 __only_inline int isascii(int _c); 37 __only_inline int toascii(int _c); 38 __only_inline int _tolower(int _c); 39 __only_inline int _toupper(int _c); 40 PROTO_NORMAL(isalnum); 41 PROTO_NORMAL(isalpha); 42 PROTO_NORMAL(iscntrl); 43 PROTO_NORMAL(isdigit); 44 PROTO_NORMAL(isgraph); 45 PROTO_NORMAL(islower); 46 PROTO_NORMAL(isprint); 47 PROTO_NORMAL(ispunct); 48 PROTO_NORMAL(isspace); 49 PROTO_NORMAL(isupper); 50 PROTO_NORMAL(isxdigit); 51 PROTO_NORMAL(tolower); 52 PROTO_NORMAL(toupper); 53 PROTO_NORMAL(isblank); 54 PROTO_NORMAL(isascii); 55 PROTO_DEPRECATED(toascii); 56 PROTO_STD_DEPRECATED(_tolower); 57 PROTO_STD_DEPRECATED(_toupper); 58 59 #include_next <ctype.h> 60 61 #if 0 62 extern PROTO_NORMAL(_ctype_); 63 extern PROTO_NORMAL(_tolower_tab_); 64 extern PROTO_NORMAL(_toupper_tab_); 65 #endif 66 67 #endif /* !_LIBC_CTYPE_H_ */ 68