Lines Matching +defs:c +defs:cpp
1 /* $NetBSD: printf.c,v 1.59 2024/11/24 12:33:00 kre Exp $ */
4 * Copyright (c) 1989, 1993
35 __COPYRIGHT("@(#) Copyright (c) 1989, 1993\
42 static char sccsid[] = "@(#)printf.c 8.2 (Berkeley) 3/22/95";
44 __RCSID("$NetBSD: printf.c,v 1.59 2024/11/24 12:33:00 kre Exp $");
113 #define APF(cpp, f, func) { \
116 error = asprintf(cpp, f, fieldwidth, precision, func); \
118 error = asprintf(cpp, f, fieldwidth, func); \
120 error = asprintf(cpp, f, precision, func); \
122 error = asprintf(cpp, f, func); \
125 #define isodigit(c) ((c) >= '0' && (c) <= '7')
126 #define octtobin(c) ((c) - '0')
127 #define check(c, a) (c) >= (a) && (c) <= (a) + 5 ? (c) - (a) + 10
128 #define hextobin(c) (check(c, 'a') : check(c, 'A') : (c) - '0')
332 char *f = mklong(start, 'c', 'l');
339 case 'c': {
410 /* escape if a \c was encountered */
460 * Halts processing string if a \c escape is encountered.
467 char c;
476 if (ch == 'c') {
477 /* \c as in SYSV echo - abort all processing.... */
522 str = conv_escape(str - 1, &c, quiet);
523 do_putchar(c);
535 int c;
551 for (c = 3; c-- && isodigit(*str); str++) {
565 for (c = 2; c-- && isxdigit((unsigned char)*str); str++) {
592 warnx("unknown escape sequence `\\%c'", ch);
788 * (used for fetching the first chartacter of a string arg for %c)