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] - Blame information for rev 520

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 207 jeremybenn
 
2
/*
3
FUNCTION
4
        <<isblank>>---blank character predicate
5
 
6
INDEX
7
        isblank
8
 
9
ANSI_SYNOPSIS
10
        #include <ctype.h>
11
        int isblank(int <[c]>);
12
 
13
TRAD_SYNOPSIS
14
        #include <ctype.h>
15
        int isblank(<[c]>);
16
 
17
DESCRIPTION
18
<<isblank>> is a function which classifies ASCII integer values by table
19
lookup.  It is a predicate returning non-zero for blank characters, and 0
20
for other characters.
21
 
22
RETURNS
23
<<isblank>> returns non-zero if <[c]> is a blank character.
24
 
25
PORTABILITY
26
<<isblank>> is C99.
27
 
28
No supporting OS subroutines are required.
29
*/
30
 
31
#include <_ansi.h>
32
#include <ctype.h>
33
 
34
 
35
 
36
#undef isblank
37
int
38
_DEFUN(isblank,(c),int c)
39
{
40
        return ((__ctype_ptr__[c+1] & _B) || (c == '\t'));
41
}

powered by: WebSVN 2.1.0

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