* Copyright (c) 1982, 1986 The Regents of the University of California.
* %sccs.include.redist.c%
* @(#)printn.c 7.3 (Berkeley) %G%
* Printn prints a number n in base b.
* We don't use recursion to avoid deep kernel stacks.
if (b
== 10 && (int)n
< 0) {
*cp
++ = "0123456789abcdef"[n
%b
];