home *** CD-ROM | disk | FTP | other *** search
/ C/C++ Interactive Guide / c-cplusplus-interactive-guide.iso / c_ref / csource3 / 163_01 / isalnum.c < prev    next >
Encoding:
Text File  |  1988-02-01  |  384 b   |  9 lines

  1. /*
  2. ** isalnum -- true if argument is valid ASCII alphabetic or digit
  3. */
  4. isalnum(c) char c; {
  5.   if((c >= 'a' && c <= 'z') || (c >= 'A' && c <= 'Z') ||
  6.       (c >= '0' && c <= '9')) return 1;
  7.   else return 0;
  8.   }
  9.