2 * icompute.c - compute an integer
8 /* This routine is used in doprnt.c as well as in tmpfile.c and tmpnam.c. */
11 _i_compute(printval_u_t val
, int base
, char *s
, int nrdigits
)
17 if (val
|| nrdigits
> 1)
18 s
= _i_compute(val
, base
, s
, nrdigits
- 1);
19 *s
++ = (c
>9 ? c
-10+'a' : c
+'0');