Home | History | Annotate | Download | only in e2fsck

Lines Matching defs:cp

170 static void safe_print(FILE *f, const char *cp, int len)
175 len = strlen(cp);
178 ch = *cp++;
527 const char * cp;
531 for (cp = msg; *cp; cp++) {
532 if (cp[0] == '@') {
533 cp++;
534 expand_at_expression(f, ctx, *cp, pctx, &first,
536 } else if (cp[0] == '%') {
537 cp++;
539 while (isdigit(cp[0])) {
540 width = (width * 10) + cp[0] - '0';
541 cp++;
543 if (cp[0] == 'I') {
544 cp++;
545 expand_inode_expression(f, fs, *cp, pctx);
546 } else if (cp[0] == 'D') {
547 cp++;
548 expand_dirent_expression(f, fs, *cp, pctx);
550 expand_percent_expression(f, fs, *cp, width,
554 for (i=0; cp[i]; i++)
555 if ((cp[i] == '@') || cp[i] == '%')
557 fprintf(f, "%.*s", i, cp);
558 cp += i-1;