home *** CD-ROM | disk | FTP | other *** search
/ C/C++ Interactive Guide / c-cplusplus-interactive-guide.iso / c_ref / csource4 / 223_01 / ispunct.c < prev    next >
Encoding:
C/C++ Source or Header  |  1979-12-31  |  384 b   |  9 lines

  1. #define NOCCARGC  /* no argument count passing */
  2. /*
  3. ** return 'true' if c is a punctuation character
  4. ** (all but control and alphanumeric)
  5. */
  6. ispunct(c) int c; {
  7.   return (!isalnum(c) && !iscntrl(c));
  8.   }
  9.