mirror of
https://github.com/cc65/cc65.git
synced 2024-12-28 06:30:16 +00:00
Added IsControl
git-svn-id: svn://svn.cc65.org/cc65/trunk@830 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
parent
07fcbb3208
commit
750cf445f7
@ -38,6 +38,12 @@
|
||||
|
||||
|
||||
|
||||
#include <ctype.h>
|
||||
|
||||
/* common */
|
||||
#include "inline.h"
|
||||
|
||||
|
||||
/* This module contains replacements for functions in ctype.h besides other
|
||||
* functions. There is a problem with using ctype.h directly:
|
||||
* The parameter must have a value of "unsigned char" or EOF.
|
||||
@ -67,6 +73,16 @@ int IsAscii (char C);
|
||||
int IsBlank (char C);
|
||||
/* Check for a space or tab */
|
||||
|
||||
#if defined(HAVE_INLINE)
|
||||
INLINE int IsControl (char C)
|
||||
/* Check for control chars */
|
||||
{
|
||||
return iscntrl ((unsigned char) C);
|
||||
}
|
||||
#else
|
||||
# define IsControl(C) iscntrl (C)
|
||||
#endif
|
||||
|
||||
int IsSpace (char C);
|
||||
/* Check for any white space characters */
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user