/* * i s w h i t e . c */ /*)LIBRARY */ #ifdef DOCUMENTATION title iswhite Test if a character is whitespace index Test if a character is whitespace synopsis iswhite(c) char c; description iswhite(c) returns 1 if c is a whitespace; otherwise, it returns 0. .s "Whitespaceness" is defined by chrtab[]; see chrtab.h. The following are whitespace: , , ('\n'), , and ('\f'). bugs This is not the same as the UNIX definition (which doesn't include or ). However, it seems more correct philosophically. .s Perhaps ('\r') should also be whitespace, for the same reason. 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 iswhite(c) char c; { return((chrtab[c & 0177] & WHITE) != 0); }