Why is it that using some of the macros from ctype.h fails to compile?
In particular, the three mentioned in the subject: line.

Try this:

#include <stdio.h>
#include <ctype.h>

int main(int argc, char *argv[])
{
   int i;
   for (i = 0; i < 256; i++) {
       printf("%3d: ",i);
       if (isalpha(i)) printf(" alpha");
       if (isalnum(i)) printf(" alnum");
       if (isascii(i)) printf(" ascii");
       if (isblank(i)) printf(" blank");
       if (iscntrl(i)) printf(" cntrl");
       if (isdigit(i)) printf(" digit");
       if (isgraph(i)) printf(" graph");
       if (islower(i)) printf(" lower");
       if (isprint(i)) printf(" print");
       if (ispunct(i)) punctf(" punct");
       if (isspace(i)) printf(" space");
       if (isupper(i)) printf(" upper");
       if (isxdigit(i)) printf(" xdigit");
       printf("\n");
   }

   return 0;
}


--
Kevin O'Gorman, PhD
--
[email protected] mailing list

Reply via email to