URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Only display areas with differences |
Details |
Blame |
View Log
Rev 207 |
Rev 520 |
|
|
/*
|
/*
|
FUNCTION
|
FUNCTION
|
<<isblank>>---blank character predicate
|
<<isblank>>---blank character predicate
|
|
|
INDEX
|
INDEX
|
isblank
|
isblank
|
|
|
ANSI_SYNOPSIS
|
ANSI_SYNOPSIS
|
#include <ctype.h>
|
#include <ctype.h>
|
int isblank(int <[c]>);
|
int isblank(int <[c]>);
|
|
|
TRAD_SYNOPSIS
|
TRAD_SYNOPSIS
|
#include <ctype.h>
|
#include <ctype.h>
|
int isblank(<[c]>);
|
int isblank(<[c]>);
|
|
|
DESCRIPTION
|
DESCRIPTION
|
<<isblank>> is a function which classifies ASCII integer values by table
|
<<isblank>> is a function which classifies ASCII integer values by table
|
lookup. It is a predicate returning non-zero for blank characters, and 0
|
lookup. It is a predicate returning non-zero for blank characters, and 0
|
for other characters.
|
for other characters.
|
|
|
RETURNS
|
RETURNS
|
<<isblank>> returns non-zero if <[c]> is a blank character.
|
<<isblank>> returns non-zero if <[c]> is a blank character.
|
|
|
PORTABILITY
|
PORTABILITY
|
<<isblank>> is C99.
|
<<isblank>> is C99.
|
|
|
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 isblank
|
#undef isblank
|
int
|
int
|
_DEFUN(isblank,(c),int c)
|
_DEFUN(isblank,(c),int c)
|
{
|
{
|
return ((__ctype_ptr__[c+1] & _B) || (c == '\t'));
|
return ((__ctype_ptr__[c+1] & _B) || (c == '\t'));
|
}
|
}
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.