* Copyright (c) 1989 The Regents of the University of California.
* %sccs.include.redist.c%
static char sccsid
[] = "@(#)conv.c 5.4 (Berkeley) %G%";
if (deprecated
) /* od didn't know about \a */
(void)printf(pr
->fmt
, *p
);
(void)sprintf(str
= buf
, "%03o", (int)*p
);
(void)printf(pr
->fmt
, str
);
"nul", "soh", "stx", "etx", "eot", "enq", "ack", "bel",
"bs", "ht", "lf", "vt", "ff", "cr", "so", "si",
"dle", "dcl", "dc2", "dc3", "dc4", "nak", "syn", "etb",
"can", "em", "sub", "esc", "fs", "gs", "rs", "us",
if (deprecated
&& *p
== 0x0a)
(void)printf(pr
->fmt
, "nl");
(void)printf(pr
->fmt
, list
[*p
]);
(void)printf(pr
->fmt
, "del");
} else if (deprecated
&& *p
== 0x20) { /* od replace space with sp */
(void)printf(pr
->fmt
, " sp");
} else if (isprint(*p
)) {
(void)printf(pr
->fmt
, *p
);
(void)printf(pr
->fmt
, (int)*p
);