/* ECP: FILEname=fig12_19.c */ /* 1*/ void /* 2*/ SetOptions( const char *Option ) /* 3*/ { /* 4*/ Lflag = Wflag = Cflag = 0; /* 5*/ while( *++Option ) /* 6*/ switch( *Option ) /* 7*/ { /* 8*/ case 'l': /* 9*/ Lflag++; break; /*10*/ case 'w': /*11*/ Wflag++; break; /*12*/ case 'c': /*13*/ Cflag++; break; /*14*/ default: /*15*/ fprintf( stderr, "Illegal option %c\n", *Option ); /*16*/ } /*17*/ }