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

NAME

6       fmt_fill - append spaces to a string
7

SYNTAX

9       #include <fmt.h>
10
11       size_t fmt_fill(char *dest,
12             size_t srclen, size_t padlen,
13             size_t maxlen);
14

DESCRIPTION

16       fmt_fill  appends  padlen-srclen spaces (if that number is positive) to
17       dest (which holds srclen bytes).  It truncates the output only  if  the
18       length would exceed maxlen.
19
20       It returns the number of bytes it wrote.
21
22       fmt_fill does not append \0.
23
24       If  dest  equals FMT_LEN (i.e. is zero), fmt_fill returns the number of
25       bytes it would have written.
26

SEE ALSO

28       fmt_strn(3), fmt_pad(3)
29
30
31
32                                                                   fmt_fill(3)
Impressum