root/lib/libc/issmth.c

/* [<][>][^][v][top][bottom][index][help] */

DEFINITIONS

This source file includes following definitions.
  1. isdigit
  2. isspace
  3. isalpha
  4. isupper

   1 #include "stdlib.h"
   2 
   3 int isdigit(int c)
   4 {
   5     return (c>='0') && (c<='9');
   6 }
   7 
   8 int isspace(int c)
   9 {
  10     if ((c >= '\t') && (c <= '\r')) return 1;
  11     if (c == ' ')  return 1;
  12     return 0;
  13 }
  14 
  15 int isalpha(int c)
  16 {
  17     return (c>='A' && c<='Z') || (c>='a' && c<='z');
  18 }
  19 
  20 int isupper(int c)
  21 {
  22     return (c>='A' && c<='Z');
  23 }
  24 

/* [<][>][^][v][top][bottom][index][help] */