date and time created 91/02/18 10:27:33 by donn
[unix-history] / usr / src / lib / libc / locale / isctype.c
/*
* Copyright (c) 1989 The Regents of the University of California.
* All rights reserved.
*
* %sccs.include.redist.c%
*/
#if defined(LIBC_SCCS) && !defined(lint)
static char sccsid[] = "@(#)isctype.c 5.2 (Berkeley) %G%";
#endif /* LIBC_SCCS and not lint */
#define _ANSI_LIBRARY
#include <ctype.h>
#undef isalnum
isalnum(c)
int c;
{
return((_ctype_ + 1)[c] & (_U|_L|_N));
}
#undef isalpha
isalpha(c)
int c;
{
return((_ctype_ + 1)[c] & (_U|_L));
}
#undef iscntrl
iscntrl(c)
int c;
{
return((_ctype_ + 1)[c] & _C);
}
#undef isdigit
isdigit(c)
int c;
{
return((_ctype_ + 1)[c] & _N);
}
#undef isgraph
isgraph(c)
int c;
{
return((_ctype_ + 1)[c] & (_P|_U|_L|_N));
}
#undef islower
islower(c)
int c;
{
return((_ctype_ + 1)[c] & _L);
}
#undef isprint
isprint(c)
int c;
{
return((_ctype_ + 1)[c] & (_P|_U|_L|_N|_B));
}
#undef ispunct
ispunct(c)
int c;
{
return((_ctype_ + 1)[c] & _P);
}
#undef isspace
isspace(c)
int c;
{
return((_ctype_ + 1)[c] & _S);
}
#undef isupper
isupper(c)
int c;
{
return((_ctype_ + 1)[c] & _U);
}
#undef isxdigit
isxdigit(c)
int c;
{
return((_ctype_ + 1)[c] & (_N|_X));
}
#undef tolower
tolower(c)
int c;
{
return((c) - 'A' + 'a');
}
#undef toupper
toupper(c)
int c;
{
return((c) - 'a' + 'A');
}