1fmt_uint0(3) Library Functions Manual fmt_uint0(3)
2
3
4
6 fmt_uint0 - write a zero-padded ASCII representation of an unsigned
7 integer
8
10 #include <fmt.h>
11
12 size_t fmt_uint0(char *dest,unsigned int source,
13 size_t n);
14
16 fmt_uint0 writes an ASCII representation ('0' to '9', base 10) of
17 source to dest and returns the number of bytes written. The output is
18 padded with '0'-bytes until it encompasses at least n bytes, but it
19 will not be truncated if it does not fit.
20
21 fmt_uint0 does not append \0.
22
23 If dest equals FMT_LEN (i.e. is zero), fmt_uint0 returns the number of
24 bytes it would have written.
25
26 For convenience, fmt.h defines the integer FMT_ULONG to be big enough
27 to contain every possible fmt_uint output plus \0.
28
30 scan_uint(3), fmt_uint(3)
31
32
33
34 fmt_uint0(3)