2001-02-02 17:54:47 +00:00
|
|
|
.TH fmt_plusminus 3
|
|
|
|
.SH NAME
|
|
|
|
fmt_plusminus \- write '+' or '-'
|
|
|
|
.SH SYNTAX
|
2017-05-13 22:51:26 +00:00
|
|
|
.B #include <libowfat/fmt.h>
|
2001-02-02 17:54:47 +00:00
|
|
|
|
2006-11-07 17:56:05 +00:00
|
|
|
size_t \fBfmt_plusminus\fP(char *\fIdest\fR,signed int \fIsource\fR);
|
2001-02-02 17:54:47 +00:00
|
|
|
.SH DESCRIPTION
|
|
|
|
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.
|
|
|
|
.SH "SEE ALSO"
|
|
|
|
fmt_minus(3), scan_plusminus(3)
|