Mirror of :pserver:cvs@cvs.fefe.de:/cvs libowfat https://www.fefe.de/libowfat/
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

22 lines
642 B

.TH fmt_fill 3
fmt_fill \- append spaces to a string
.B #include <fmt.h>
size_t \fBfmt_fill\fP(char *\fIdest\fR,
size_t \fIsrclen\fR, size_t \fIpadlen\fR,
size_t \fImaxlen\fR);
fmt_fill appends \fIpadlen\fR-\fIsrclen\fR spaces (if that number is
positive) to \fIdest\fR (which holds \fIsrclen\fR bytes). It truncates
the output only if the length would exceed \fImaxlen\fR.
It returns the number of bytes it wrote.
fmt_fill does not append \\0.
If \fIdest\fR equals FMT_LEN (i.e. is zero), fmt_fill returns the number
of bytes it would have written.
fmt_strn(3), fmt_pad(3)