1extern void *memmove (void *, const void *, __SIZE_TYPE__);
2extern void *memset (void *, int, __SIZE_TYPE__);
3
4typedef struct {
5    long n_prefix;
6    long n_spadding;
7} NumberFieldWidths;
8
9void
10fill_number(char *buf, const NumberFieldWidths *spec)
11{
12    if (spec->n_prefix) {
13        memmove(buf,
14                (char *) 0,
15                spec->n_prefix * sizeof(char));
16        buf += spec->n_prefix;
17    }
18    if (spec->n_spadding) {
19        memset(buf, 0, spec->n_spadding);
20        buf += spec->n_spadding;
21    }
22}
23
24