+
+bufcmp (b1, b2, n)
+register char *b1, *b2;
+register int n;
+{
+ while (n-- > 0)
+ if (*b1++ != *b2++)
+ return (0);
+ return (1);
+}
+
+match (line, str)
+register char *line, *str;
+{
+ register char ch;
+
+ while (*line == ' ' || *line == '\t')
+ ++line;
+ if (*line == '\n')
+ return (0);
+ while (*str && *line != ' ' && *line != '\t' && *line != '\n') {
+ ch = isupper(*line) ? tolower(*line) : *line;
+ if (ch != *str++)
+ return (0);
+ line++;
+ }
+ return (*str == '\0');
+}