Lines Matching refs:cp
182 register char *cp; /* handy char pointer (short term usage) */
272 cp = fmt; \
273 while (is_digit(*cp)) \
275 n2 = 10 * n2 + to_digit(*cp); \
276 cp++; \
278 if (*cp == '$') \
289 fmt = ++cp; \
336 cp = fmt;
347 if ((m = fmt - cp) != 0)
349 PRINT(cp, m);
474 *(cp = buf) = GETARG(int);
606 if ((cp = GETARG(char *)) == NULL)
607 cp = "(null)";
616 char *p = memchr(cp, 0, prec);
620 size = p - cp;
628 size = strlen(cp);
667 cp = buf + BUF;
681 *--cp = to_char(_uquad & 7);
685 if (flags & ALT && *cp != '0')
686 *--cp = '0';
693 *--cp = to_char(_uquad % 10);
696 *--cp = to_char(_uquad);
702 *--cp = xdigs[_uquad & 15];
708 cp = "bug in sm_io_vfprintf: bad base";
709 size = strlen(cp);
713 size = buf + BUF - cp;
720 cp = buf;
721 *cp = ch;
728 ** All reasonable formats wind up here. At this point, `cp'
772 PRINT(cp, size);
835 register char *cp; /* handy char pointer (short term usage) */
861 cp = fmt; \
862 while (is_digit(*cp)) \
864 n2 = 10 * n2 + to_digit(*cp); \
865 cp++; \
867 if (*cp == '$') \
873 fmt = ++cp; \
889 for (cp = fmt; (ch = *fmt) != '\0' && ch != '%'; fmt++)