Lines Matching refs:buff
614 LookupWord(buff) in LookupWord() argument
615 char *buff; in LookupWord()
624 for (p = buff; *p; p++)
628 if (strcmp(buff, "am") == 0 || strcmp(buff, "a.m.") == 0) {
632 if (strcmp(buff, "pm") == 0 || strcmp(buff, "p.m.") == 0) {
638 if (strlen(buff) == 3)
640 else if (strlen(buff) == 4 && buff[3] == '.') {
642 buff[3] = '\0';
649 if (strncmp(buff, tp->name, 3) == 0) {
654 else if (strcmp(buff, tp->name) == 0) {
661 if (strcmp(buff, tp->name) == 0) {
667 if (strcmp(buff, tp->name) == 0) {
673 i = strlen(buff) - 1;
674 if (buff[i] == 's') {
675 buff[i] = '\0';
677 if (strcmp(buff, tp->name) == 0) {
684 if (strcmp(buff, tp->name) == 0) {
690 if (buff[1] == '\0' && isalpha((u_char)*buff)) {
692 if (strcmp(buff, tp->name) == 0) {
699 for (i = 0, p = q = buff; *q; q++)
707 if (strcmp(buff, tp->name) == 0) {
795 char buff[20]; in yylex() local
825 for (p = buff; isalpha((u_char)(c = *yyInput++)) || c == '.'; ) in yylex()
826 if (p < &buff[sizeof (buff) - 1]) in yylex()
830 return LookupWord(buff); in yylex()
958 char buff[128]; local
969 while (gets(buff) && buff[0]) {
970 d = getreldate(buff, (struct timeb *)NULL);
974 (void) cftime(buff, "%c\n", &d);
975 (void) printf("%s", buff);