Lines Matching refs:buff
616 LookupWord(buff) in LookupWord() argument
617 char *buff; in LookupWord()
626 for (p = buff; *p; p++)
630 if (strcmp(buff, "am") == 0 || strcmp(buff, "a.m.") == 0) {
634 if (strcmp(buff, "pm") == 0 || strcmp(buff, "p.m.") == 0) {
640 if (strlen(buff) == 3)
642 else if (strlen(buff) == 4 && buff[3] == '.') {
644 buff[3] = '\0';
651 if (strncmp(buff, tp->name, 3) == 0) {
656 else if (strcmp(buff, tp->name) == 0) {
663 if (strcmp(buff, tp->name) == 0) {
669 if (strcmp(buff, tp->name) == 0) {
675 i = strlen(buff) - 1;
676 if (buff[i] == 's') {
677 buff[i] = '\0';
679 if (strcmp(buff, tp->name) == 0) {
686 if (strcmp(buff, tp->name) == 0) {
692 if (buff[1] == '\0' && isalpha((u_char)*buff)) {
694 if (strcmp(buff, tp->name) == 0) {
701 for (i = 0, p = q = buff; *q; q++)
709 if (strcmp(buff, tp->name) == 0) {
797 char buff[20]; in yylex() local
827 for (p = buff; isalpha((u_char)(c = *yyInput++)) || c == '.'; ) in yylex()
828 if (p < &buff[sizeof (buff) - 1]) in yylex()
832 return LookupWord(buff); in yylex()
960 char buff[128]; local
971 while (gets(buff) && buff[0]) {
972 d = getreldate(buff, (struct timeb *)NULL);
976 (void) cftime(buff, "%c\n", &d);
977 (void) printf("%s", buff);