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.

18 lines
542 B

.TH fmt_plusminus 3
fmt_plusminus \- write '+' or '-'
.B #include <fmt.h>
unsigned int \fBfmt_plusminus\fP(char *\fIdest\fR,signed int \fIsource\fR);
fmt_plusminus writes '-' to \fIdest\fR if \fIsource\fR is negative, '+'
if \fIsource\fR is positive, nothing otherwise. It returns the number
of bytes written.
fmt_plusminus does not append \\0.
If \fIdest\fR equals FMT_LEN (i.e. is zero), fmt_plusminus returns the number
of bytes it would have written.
fmt_minus(3), scan_plusminus(3)