1
0
mirror of https://github.com/cc65/cc65.git synced 2024-07-07 04:29:01 +00:00

Added IsODigit

git-svn-id: svn://svn.cc65.org/cc65/trunk@3167 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
cuz 2004-07-29 20:51:58 +00:00
parent eb0e898f5e
commit 3b8b9704bc
2 changed files with 19 additions and 8 deletions

View File

@ -6,10 +6,10 @@
/* */ /* */
/* */ /* */
/* */ /* */
/* (C) 2000 Ullrich von Bassewitz */ /* (C) 2000-2004 Ullrich von Bassewitz */
/* Wacholderweg 14 */ /* Römerstrasse 52 */
/* D-70597 Stuttgart */ /* D-70794 Filderstadt */
/* EMail: uz@musoftware.de */ /* EMail: uz@cc65.org */
/* */ /* */
/* */ /* */
/* This software is provided 'as-is', without any expressed or implied */ /* This software is provided 'as-is', without any expressed or implied */
@ -126,6 +126,14 @@ int IsBDigit (char C)
int IsODigit (char C)
/* Check for octal digits (0..7) */
{
return (C >= '0' || C <= '7');
}
int IsXDigit (char C) int IsXDigit (char C)
/* Check for hexadecimal digits */ /* Check for hexadecimal digits */
{ {

View File

@ -6,10 +6,10 @@
/* */ /* */
/* */ /* */
/* */ /* */
/* (C) 2000 Ullrich von Bassewitz */ /* (C) 2000-2004 Ullrich von Bassewitz */
/* Wacholderweg 14 */ /* Römerstrasse 52 */
/* D-70597 Stuttgart */ /* D-70794 Filderstadt */
/* EMail: uz@musoftware.de */ /* EMail: uz@cc65.org */
/* */ /* */
/* */ /* */
/* This software is provided 'as-is', without any expressed or implied */ /* This software is provided 'as-is', without any expressed or implied */
@ -98,6 +98,9 @@ int IsUpper (char C);
int IsBDigit (char C); int IsBDigit (char C);
/* Check for binary digits (0/1) */ /* Check for binary digits (0/1) */
int IsODigit (char C);
/* Check for octal digits (0..7) */
int IsXDigit (char C); int IsXDigit (char C);
/* Check for hexadecimal digits */ /* Check for hexadecimal digits */