+ ODR_MASK_ZERO(&a);
+ while (gets(line))
+ {
+ int i;
+
+ sscanf(line, "%c %d", &command, &val);
+ switch (command)
+ {
+ case 's': ODR_MASK_SET(&a, val); break;
+ case 'c': ODR_MASK_CLEAR(&a, val); break;
+ case 'g': printf("%d\n", ODR_MASK_GET(&a, val)); break;
+ case 'l': break;
+ default: printf("enter c <v> or s <v> or l\n"); continue;
+ }
+ printf("top is %d\n", a.top);
+ for (i = 0; i <= a.top; i++)
+ printf("%2.2x ", a.bits[i] );
+ printf("\n");
+ }