Lines Matching refs:cp
41 * Put the character string cp out, with padding.
51 _tpad(char *cp, int affcnt, int (*outc)(char x))
54 char *icp = cp;
74 cp += 2;
77 if (isdigit(*cp)) {
79 delay = delay * 10 + *cp++ - '0';
80 while (isdigit(*cp));
83 if (*cp == '.') {
84 cp++;
85 if (isdigit(*cp))
86 delay += *cp - '0';
88 while (isdigit(*cp))
89 cp++;
100 if (*cp == '/')
103 if (*cp == '*')
107 cp++;
111 if (*cp == '>')
112 cp++; /* Eat trailing '>' */
129 return (cp);
139 return (cp);
141 return (cp);
145 tputs(char *cp, int affcnt, int (*outc)(char))
147 if (cp != 0) {
148 ocp = cp;
151 while (*cp)
152 if (*cp == '$' && cp[1] == '<')
153 cp = _tpad(cp, affcnt, outc);
155 (*outc)(*cp++);