URL
https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk
Only display areas with differences |
Details |
Blame |
View Log
Rev 207 |
Rev 345 |
/*
|
/*
|
FUNCTION
|
FUNCTION
|
<<isascii>>---ASCII character predicate
|
<<isascii>>---ASCII character predicate
|
|
|
INDEX
|
INDEX
|
isascii
|
isascii
|
|
|
ANSI_SYNOPSIS
|
ANSI_SYNOPSIS
|
#include <ctype.h>
|
#include <ctype.h>
|
int isascii(int <[c]>);
|
int isascii(int <[c]>);
|
|
|
TRAD_SYNOPSIS
|
TRAD_SYNOPSIS
|
#include <ctype.h>
|
#include <ctype.h>
|
int isascii(<[c]>);
|
int isascii(<[c]>);
|
|
|
DESCRIPTION
|
DESCRIPTION
|
<<isascii>> is a macro which returns non-zero when <[c]> is an ASCII
|
<<isascii>> is a macro which returns non-zero when <[c]> is an ASCII
|
character, and 0 otherwise. It is defined for all integer values.
|
character, and 0 otherwise. It is defined for all integer values.
|
|
|
You can use a compiled subroutine instead of the macro definition by
|
You can use a compiled subroutine instead of the macro definition by
|
undefining the macro using `<<#undef isascii>>'.
|
undefining the macro using `<<#undef isascii>>'.
|
|
|
RETURNS
|
RETURNS
|
<<isascii>> returns non-zero if the low order byte of <[c]> is in the range
|
<<isascii>> returns non-zero if the low order byte of <[c]> is in the range
|
0 to 127 (<<0x00>>--<<0x7F>>).
|
0 to 127 (<<0x00>>--<<0x7F>>).
|
|
|
PORTABILITY
|
PORTABILITY
|
<<isascii>> is ANSI C.
|
<<isascii>> is ANSI C.
|
|
|
No supporting OS subroutines are required.
|
No supporting OS subroutines are required.
|
*/
|
*/
|
#include <_ansi.h>
|
#include <_ansi.h>
|
#include <ctype.h>
|
#include <ctype.h>
|
|
|
|
|
|
|
#undef isascii
|
#undef isascii
|
|
|
int
|
int
|
_DEFUN(isascii,(c),int c)
|
_DEFUN(isascii,(c),int c)
|
{
|
{
|
return c >= 0 && c< 128;
|
return c >= 0 && c< 128;
|
}
|
}
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.