OpenCores
URL https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk

Subversion Repositories openrisc_2011-10-31

[/] [openrisc/] [tags/] [gnu-src/] [newlib-1.18.0/] [newlib-1.18.0-or32-1.0rc1/] [newlib/] [libc/] [ctype/] [islower.c] - Blame information for rev 345

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 207 jeremybenn
 
2
/*
3
FUNCTION
4
<<islower>>---lowercase character predicate
5
 
6
INDEX
7
islower
8
 
9
ANSI_SYNOPSIS
10
#include <ctype.h>
11
int islower(int <[c]>);
12
 
13
TRAD_SYNOPSIS
14
#include <ctype.h>
15
int islower(<[c]>);
16
 
17
DESCRIPTION
18
<<islower>> is a macro which classifies ASCII integer values by table
19
lookup.  It is a predicate returning non-zero for minuscules
20
(lowercase alphabetic characters), and 0 for other characters.
21
It is defined only when <<isascii>>(<[c]>) is true or <[c]> is EOF.
22
 
23
You can use a compiled subroutine instead of the macro definition by
24
undefining the macro using `<<#undef islower>>'.
25
 
26
RETURNS
27
<<islower>> returns non-zero if <[c]> is a lowercase letter (<<a>>--<<z>>).
28
 
29
PORTABILITY
30
<<islower>> is ANSI C.
31
 
32
No supporting OS subroutines are required.
33
*/
34
#include <_ansi.h>
35
#include <ctype.h>
36
 
37
#undef islower
38
int
39
_DEFUN(islower,(c),int c)
40
{
41
        return ((__ctype_ptr__[c+1] & (_U|_L)) == _L);
42
}
43
 

powered by: WebSVN 2.1.0

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