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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [newlib-1.17.0/] [newlib/] [libc/] [ctype/] [isblank.c] - Rev 816

Compare with Previous | Blame | View Log

 
/*
FUNCTION
	<<isblank>>---blank character predicate
 
INDEX
	isblank
 
ANSI_SYNOPSIS
	#include <ctype.h>
	int isblank(int <[c]>);
 
TRAD_SYNOPSIS
	#include <ctype.h>
	int isblank(<[c]>);
 
DESCRIPTION
<<isblank>> is a function which classifies ASCII integer values by table
lookup.  It is a predicate returning non-zero for blank characters, and 0
for other characters.
 
RETURNS
<<isblank>> returns non-zero if <[c]> is a blank character.
 
PORTABILITY
<<isblank>> is C99.
 
No supporting OS subroutines are required.
*/
 
#include <_ansi.h>
#include <ctype.h>
 
 
 
#undef isblank
int
_DEFUN(isblank,(c),int c)
{
	return (c == ' ' || c == '\t');
}
 

Compare with Previous | Blame | View Log

powered by: WebSVN 2.1.0

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