General Purpose library for Freestanding C++ and POSIX systems
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

13 lines
246 B

#pragma once
inline bool is_digit(char v) {
return v >= '0' && v <= '9';
}
inline bool is_alpha(char v) {
return (v >= 'a' && v <= 'z' )||(v >= 'A' && v <= 'Z');
}
inline bool is_alnum(char v) {
return is_alpha(v) || is_digit(v);
}