OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [tags/] [gnu-src/] [newlib-1.18.0/] [newlib-1.18.0-or32-1.0rc2/] [newlib/] [libc/] [ctype/] [isblank.c] - Diff between revs 207 and 520

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'));
}
}
 
 

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.