#define _ANSI_LIBRARY
#include <ctype.h>
#include <stdio.h>
#undef isalnum
int
isalnum(int c)
{
return (c == EOF ? 0 : ((_ctype_ + 1)[(unsigned char)c] &
(_CTYPE_U|_CTYPE_L|_CTYPE_N)));
}
DEF_STRONG(isalnum);
#undef isalpha
int
isalpha(int c)
{
return (c == EOF ? 0 : ((_ctype_ + 1)[(unsigned char)c] &
(_CTYPE_U|_CTYPE_L)));
}
DEF_STRONG(isalpha);
#undef isblank
int
isblank(int c)
{
return (c == ' ' || c == '\t');
}
DEF_STRONG(isblank);
#undef iscntrl
int
iscntrl(int c)
{
return (c == EOF ? 0 : ((_ctype_ + 1)[(unsigned char)c] & _CTYPE_C));
}
DEF_STRONG(iscntrl);
#undef isdigit
int
isdigit(int c)
{
return (c == EOF ? 0 : ((_ctype_ + 1)[(unsigned char)c] & _CTYPE_N));
}
DEF_STRONG(isdigit);
#undef isgraph
int
isgraph(int c)
{
return (c == EOF ? 0 : ((_ctype_ + 1)[(unsigned char)c] &
(_CTYPE_P|_CTYPE_U|_CTYPE_L|_CTYPE_N)));
}
DEF_STRONG(isgraph);
#undef islower
int
islower(int c)
{
return (c == EOF ? 0 : ((_ctype_ + 1)[(unsigned char)c] & _CTYPE_L));
}
DEF_STRONG(islower);
#undef isprint
int
isprint(int c)
{
return (c == EOF ? 0 : ((_ctype_ + 1)[(unsigned char)c] &
(_CTYPE_P|_CTYPE_U|_CTYPE_L|_CTYPE_N|_CTYPE_B)));
}
DEF_STRONG(isprint);
#undef ispunct
int
ispunct(int c)
{
return (c == EOF ? 0 : ((_ctype_ + 1)[(unsigned char)c] & _CTYPE_P));
}
DEF_STRONG(ispunct);
#undef isspace
int
isspace(int c)
{
return (c == EOF ? 0 : ((_ctype_ + 1)[(unsigned char)c] & _CTYPE_S));
}
DEF_STRONG(isspace);
#undef isupper
int
isupper(int c)
{
return (c == EOF ? 0 : ((_ctype_ + 1)[(unsigned char)c] & _CTYPE_U));
}
DEF_STRONG(isupper);
#undef isxdigit
int
isxdigit(int c)
{
return (c == EOF ? 0 : ((_ctype_ + 1)[(unsigned char)c] &
(_CTYPE_N|_CTYPE_X)));
}
DEF_STRONG(isxdigit);
#undef isascii
int
isascii(int c)
{
return ((unsigned int)c <= 0177);
}
DEF_WEAK(isascii);
#undef toascii
int
toascii(int c)
{
return (c & 0177);
}
#undef _toupper
int
_toupper(int c)
{
return (c - 'a' + 'A');
}
#undef _tolower
int
_tolower(int c)
{
return (c - 'A' + 'a');
}