1 extern void *memmove (void *, const void *, __SIZE_TYPE__);
2 extern void *memset (void *, int, __SIZE_TYPE__);
3
4 typedef struct {
5 long n_prefix;
6 long n_spadding;
7 } NumberFieldWidths;
8
9 void
fill_number(char * buf,const NumberFieldWidths * spec)10 fill_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