Lines Matching refs:buff
668 LookupWord(char *buff) in LookupWord() argument
677 for (p = buff; *p; p++) in LookupWord()
681 if (strcmp(buff, "am") == 0 || strcmp(buff, "a.m.") == 0) { in LookupWord()
685 if (strcmp(buff, "pm") == 0 || strcmp(buff, "p.m.") == 0) { in LookupWord()
691 if (strlen(buff) == 3) in LookupWord()
693 else if (strlen(buff) == 4 && buff[3] == '.') { in LookupWord()
695 buff[3] = '\0'; in LookupWord()
702 if (strncmp(buff, tp->name, 3) == 0) { in LookupWord()
707 else if (strcmp(buff, tp->name) == 0) { in LookupWord()
714 if (strcmp(buff, tp->name) == 0) { in LookupWord()
719 if (strcmp(buff, "dst") == 0) in LookupWord()
723 if (strcmp(buff, tp->name) == 0) { in LookupWord()
729 i = strlen(buff) - 1; in LookupWord()
730 if (buff[i] == 's') { in LookupWord()
731 buff[i] = '\0'; in LookupWord()
733 if (strcmp(buff, tp->name) == 0) { in LookupWord()
737 buff[i] = 's'; /* Put back for "this" in OtherTable. */ in LookupWord()
741 if (strcmp(buff, tp->name) == 0) { in LookupWord()
747 if (buff[1] == '\0' && isalpha(*buff)) { in LookupWord()
749 if (strcmp(buff, tp->name) == 0) { in LookupWord()
756 for (i = 0, p = q = buff; *q; q++) in LookupWord()
764 if (strcmp(buff, tp->name) == 0) { in LookupWord()
778 char buff[20]; in yylex() local
803 for (p = buff; isalpha(c = *yyInput++) || c == '.'; ) in yylex()
804 if (p < &buff[sizeof buff - 1]) in yylex()
808 return LookupWord(buff); in yylex()
942 char buff[128]; in main() local
947 while (gets(buff) && buff[0]) { in main()
948 d = get_date(buff); in main()