- s = stab(wordbuf, ST_CLASS, ST_ENTER);
- setbitn(class, s->s_class);
+ p = wordbuf;
+# else SCANF
+ p = buf;
+# endif SCANF
+
+ /*
+ ** Break up the match into words.
+ */
+
+ while (*p != '\0')
+ {
+ register char *q;
+
+ /* strip leading spaces */
+ while (isspace(*p))
+ p++;
+ if (*p == '\0')
+ break;
+
+ /* find the end of the word */
+ q = p;
+ while (*p != '\0' && !isspace(*p))
+ p++;
+ if (*p != '\0')
+ *p++ = '\0';
+
+ /* enter the word in the symbol table */
+ s = stab(q, ST_CLASS, ST_ENTER);
+ setbitn(class, s->s_class);
+ }