Lines Matching refs:cp

100 	register char*	cp;
132 cp = buf;
149 if (cp < ep)
150 *cp++ = c;
237 if (cp < ep)
238 *cp++ = '%';
263 cp = number(cp, ep, (long)(1900 + tm->tm_year) / 100, 2, width, pad);
266 cp = number(cp, ep, (long)tm->tm_mday, 2, width, pad);
272 cp = number(cp, ep, (long)tm->tm_mday, 0, width, pad);
275 cp = number(cp, ep, (long)tm->tm_mday, -2, width, pad);
303 cp = number(cp, ep, (long)n, c, width, pad);
306 cp = number(cp, ep, (long)tm->tm_hour, 2, width, pad);
314 cp = number(cp, ep, (long)n, 2, width, pad);
317 cp = number(cp, ep, (long)tm->tm_yday, 3, width, pad);
320 cp = number(cp, ep, (long)(tm->tm_yday + 1), 3, width, pad);
356 cp = number(cp, ep, (long)(tm->tm_mon + 1), 2, width, pad);
359 cp = number(cp, ep, (long)tm->tm_min, 2, width, pad);
362 if (cp < ep)
363 *cp++ = '\n';
366 cp = number(cp, ep, (long)tm->tm_nsec, 9, width, pad);
447 cp += sfsprintf(cp, ep - cp, fmt, tmxsec(now));
450 n = sfsprintf(cp, ep - cp, ".%09I*u", sizeof(Tmxnsec_t), tmxnsec(now));
453 cp += n;
457 cp = number(cp, ep, (long)tm->tm_sec, 2, width, pad);
465 if (cp < ep)
466 *cp++ = '\t';
474 cp = number(cp, ep, (long)i, 0, width, pad);
477 cp = number(cp, ep, (long)tmweek(tm, 0, -1, -1), 2, width, pad);
480 cp = number(cp, ep, (long)tmweek(tm, 2, -1, -1), 2, width, pad);
483 cp = number(cp, ep, (long)tmweek(tm, 1, -1, -1), 2, width, pad);
486 cp = number(cp, ep, (long)tm->tm_wday, 0, width, pad);
495 cp = number(cp, ep, (long)(tm->tm_year % 100), 2, width, pad);
498 cp = number(cp, ep, (long)(1900 + tm->tm_year), 4, width, pad);
507 if ((ep - cp) >= 16)
508 cp = tmpoff(cp, ep - cp, "", (flags & TM_UTC) ? 0 : tm->tm_zone->west + (tm->tm_isdst ? tm->tm_zone->dst : 0), 24 * 60);
533 if (cp < ep)
534 *cp++ = '%';
535 if (cp < ep)
536 *cp++ = c;
542 while (cp < ep && (*cp = *p++))
543 cp++;
619 if (cp >= ep)
620 cp = ep - 1;
621 *cp = 0;
622 return cp;