Lines Matching refs:cp
50 char *cp;
54 cp = linebuf;
55 if (*cp++ != 'F' || *cp++ != 'r' || *cp++ != 'o' || *cp++ != 'm' ||
56 *cp++ != ' ')
93 char *cp, *sp;
99 cp = line;
104 cp = nextword(cp, word);
105 cp = nextword(cp, word);
108 if (cp != NULL && strncmp(cp, "tty", 3) == 0) {
109 cp = nextword(cp, word);
112 if (cp != NULL)
113 hl->l_date = copyin(cp, &sp);
125 char *cp, *top;
127 top = cp = *space;
128 while ((*cp++ = *src++) != '\0')
130 *space = cp;
187 * Match the given string (cp) against the given template (tp).
191 cmatch(char *cp, char *tp)
194 while (*cp && *tp)
197 if (!islower((unsigned char)*cp++))
201 if (!isupper((unsigned char)*cp++))
205 if (*cp++ != ' ')
209 if (!isdigit((unsigned char)*cp++))
213 if (*cp != ' ' && !isdigit((unsigned char)*cp))
215 cp++;
218 if (!ispunct((unsigned char)*cp++))
222 if (*cp != ' ' && !ispunct((unsigned char)*cp))
224 cp++;
227 if (*cp++ != ':')
231 if (*cp++ != '\n')
235 if (*cp || *tp)