Lines Matching +defs:p +defs:c
1 /* $OpenBSD: printf.c,v 1.28 2024/08/26 03:49:06 deraadt Exp $ */
4 * Copyright (c) 1989 The Regents of the University of California.
57 #define isodigit(c) ((c) >= '0' && (c) <= '7')
58 #define octtobin(c) ((c) - '0')
59 #define hextobin(c) ((c) >= 'A' && (c) <= 'F' ? c - 'A' + 10 : (c) >= 'a' && (c) <= 'f' ? c - 'a' + 10 : c - '0')
119 char *p = getstr();
120 if (print_escape_str(p)) {
160 case 'c': {
161 char p = getchr();
162 PF(start, p);
166 char *p = getstr();
167 PF(start, p);
172 long p;
178 p = getlong();
179 PF(f, p);
186 unsigned long p;
192 p = getulong();
193 PF(f, p);
204 double p = getdouble();
205 PF(start, p);
232 * Halts processing string and returns 1 if a \c escape is encountered.
238 int c;
250 for (c = 3, value = 0; c-- && isodigit(*str); str++) {
256 } else if (*str == 'c') {
279 int c;
286 for (c = 3; c-- && isodigit(*str); str++) {
296 for (c = 2; c-- && isxdigit((unsigned char)*str); str++) {
359 warnx("unknown escape sequence `\\%c'", *str);