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.
.TH fmt_pad 3
fmt_pad \- pad a string with spaces.
.B #include <fmt.h>
size_t \fBfmt_pad\fP(char *\fIdest\fR, const char *\fIsource\fR,
size_t \fIsrclen\fR, size_t \fIpadlen\fR,
fmt_pad writes \fIpadlen\fR-\fIsrclen\fR spaces (if that number is
positive) and then \fIsrclen\fR characters from \fIsource\fR. It
truncates the output only if the length would exceed \fImaxlen\fR.
It returns the number of bytes it wrote.
fmt_pad does not append \\0.
If \fIdest\fR equals FMT_LEN (i.e. is zero), fmt_pad returns the number
of bytes it would have written.
.SH "SEE ALSO"