From b394ba7f2aa71aace8e13d07000ac09bddd18d3e Mon Sep 17 00:00:00 2001 From: shatty Date: Sat, 16 Aug 2003 07:13:55 +0000 Subject: [PATCH] new posix/beos compatible version in public posix/ctype.h, also added isblank prototype git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4284 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- headers/posix/ctype.h | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 headers/posix/ctype.h diff --git a/headers/posix/ctype.h b/headers/posix/ctype.h new file mode 100644 index 0000000000..0d12f1a3d7 --- /dev/null +++ b/headers/posix/ctype.h @@ -0,0 +1,32 @@ +#ifndef _CTYPE_H +#define _CTYPE_H + +#ifdef __cplusplus +extern "C" { +#endif + +int isalnum(int); +int isalpha(int); +int isascii(int); +int isblank(int); +int iscntrl(int); +int isdigit(int); +int isgraph(int); +int islower(int); +int isprint(int); +int ispunct(int); +int isspace(int); +int isupper(int); +int isxdigit(int); +int toascii(int); +int tolower(int); +int toupper(int); + +#define _toupper(ch) ((int) (((int)ch) - 'a' + 'A')) +#define _tolower(ch) ((int) (((int)ch) - 'A' + 'a')) + +#ifdef __cplusplus +} +#endif + +#endif // _CTYPE_H