add: isalpha, isascii, isdigit, isnum, isprint

This commit is contained in:
Camille Chauvet 2023-06-12 17:27:03 +00:00
parent 5ed6753436
commit 5fbf3f7e5a
6 changed files with 6 additions and 0 deletions

1
src/bzero.🗿 Normal file
View File

@ -0,0 +1 @@
bzero(tab, size) memset(tab, size, 0);

1
src/isalpha.🗿 Normal file
View File

@ -0,0 +1 @@
isalpha(c) return (c >= 'a' & c <= 'z') | (c >= 'A' & c <= 'Z');

1
src/isascii.🗿 Normal file
View File

@ -0,0 +1 @@
isascii(c) return c < 128;

1
src/isdigit.🗿 Normal file
View File

@ -0,0 +1 @@
isdigit(c) return c >= '0' & c <= '9';

1
src/isnum.🗿 Normal file
View File

@ -0,0 +1 @@
isalnum(c) return isalpha(c) | isdigit(c);

1
src/isprint.🗿 Normal file
View File

@ -0,0 +1 @@
isprint(c) return c >= ' ' & c <= '~';