1fmt_ulong0(3)              Library Functions Manual              fmt_ulong0(3)
2
3
4

NAME

6       fmt_ulong0  -  write  a zero-padded ASCII representation of an unsigned
7       long integer
8

SYNTAX

10       #include <fmt.h>
11
12       size_t fmt_ulong0(char *dest, unsigned long source,
13                               size_t n);
14

DESCRIPTION

16       fmt_ulong0 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_ulong0 does not append \0.
22
23       If dest equals FMT_LEN (i.e. is zero), fmt_ulong0 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_ulong output plus \0.
28

SEE ALSO

30       scan_ulong(3), fmt_ulong(3)
31
32
33
34                                                                 fmt_ulong0(3)
Impressum