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.

12 regels
246 B

  1. #pragma once
  2. inline bool is_digit(char v) {
  3. return v >= '0' && v <= '9';
  4. }
  5. inline bool is_alpha(char v) {
  6. return (v >= 'a' && v <= 'z' )||(v >= 'A' && v <= 'Z');
  7. }
  8. inline bool is_alnum(char v) {
  9. return is_alpha(v) || is_digit(v);
  10. }