/* * i s a l f m . c */ /*)LIBRARY */ #ifdef DOCUMENTATION title isalfnum Test if a character is alphanumeric index Test if a character is alphanumeric synopsis isalfnum(c) char c; description isalfnum(c) returns 1 if c is letter or a digit; otherwise, it returns 0. .s Note the spelling of the name! bugs VMS documentation calls '$' and '_' alphanumeric; isalfnum() disagrees. author Jerry Leichter #endif /* * )EDITLEVEL=02 * Edit history * 0.0 13-May-81 JSL Invention * 0.1 21-May-81 JSL Conversion to new comment conventions */ #ifdef vms #include "c:chrtab.h" #else #include #endif isalfnum(c) char c; { return((chrtab[c & 0177] & ALFNUM) != 0); }