#include #include #include "exception.h" #include "char.h" static void wc(void); static long count = 0; int main(int argc, char*argv[]) { HANDLE(NotAChar,wc()); if(exception_raised()) fprintf(stderr,"%d caracteres lus\n",count); } void wc(void) { for(;;(readchar(),count++)); }