1fmt_plusminus(3) Library Functions Manual fmt_plusminus(3)
2
3
4
6 fmt_plusminus - write '+' or '-'
7
9 #include <fmt.h>
10
11 size_t fmt_plusminus(char *dest,signed int source);
12
14 fmt_plusminus writes '-' to dest if source is negative, '+' if source
15 is positive, nothing otherwise. It returns the number of bytes writ‐
16 ten.
17
18 fmt_plusminus does not append \0.
19
20 If dest equals FMT_LEN (i.e. is zero), fmt_plusminus returns the number
21 of bytes it would have written.
22
24 fmt_minus(3), scan_plusminus(3)
25
26
27
28 fmt_plusminus(3)