Home | History | Annotate | Download | only in e2fsck

Lines Matching refs:cp

165 static void safe_print(const char *cp, int len)
170 len = strlen(cp);
173 ch = *cp++;
463 const char * cp;
467 for (cp = msg; *cp; cp++) {
468 if (cp[0] == '@') {
469 cp++;
470 expand_at_expression(ctx, *cp, pctx, &first, recurse);
471 } else if (cp[0] == '%' && cp[1] == 'I') {
472 cp += 2;
473 expand_inode_expression(*cp, pctx);
474 } else if (cp[0] == '%' && cp[1] == 'D') {
475 cp += 2;
476 expand_dirent_expression(*cp, pctx);
477 } else if ((cp[0] == '%')) {
478 cp++;
479 expand_percent_expression(fs, *cp, pctx);
481 for (i=0; cp[i]; i++)
482 if ((cp[i] == '@') || cp[i] == '%')
484 printf("%.*s", i, cp);
485 cp += i-1;