Subversion Repositories Kolibri OS

Rev

Rev 4872 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
4349 Serge 1
 
2
FUNCTION
3
	<>---whitespace character predicate
4
5
 
6
	isspace
7
8
 
9
	#include 
10
	int isspace(int <[c]>);
11
12
 
13
	#include 
14
	int isspace(<[c]>);
15
16
 
17
<> is a macro which classifies ASCII integer values by table
18
lookup.  It is a predicate returning non-zero for whitespace
19
characters, and 0 for other characters.  It is defined only when <>(<[c]>) is true or <[c]> is EOF.
20
21
 
22
undefining the macro using `<<#undef isspace>>'.
23
24
 
25
<> returns non-zero if <[c]> is a space, tab, carriage return, new
26
line, vertical tab, or formfeed (<<0x09>>--<<0x0D>>, <<0x20>>).
27
28
 
29
<> is ANSI C.
30
31
 
32
*/
33
#include <_ansi.h>
34
#include 
35
36
 
37
 
38
int
39
_DEFUN(isspace,(c),int c)
40
{
41
	return(__ctype_ptr__[c+1] & _S);
42
}
43