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.
 
 
 
 

19 lines
545 B

  1. .TH fmt_plusminus 3
  2. .SH NAME
  3. fmt_plusminus \- write '+' or '-'
  4. .SH SYNTAX
  5. .B #include <libowfat/fmt.h>
  6. size_t \fBfmt_plusminus\fP(char *\fIdest\fR,signed int \fIsource\fR);
  7. .SH DESCRIPTION
  8. fmt_plusminus writes '-' to \fIdest\fR if \fIsource\fR is negative, '+'
  9. if \fIsource\fR is positive, nothing otherwise. It returns the number
  10. of bytes written.
  11. fmt_plusminus does not append \\0.
  12. If \fIdest\fR equals FMT_LEN (i.e. is zero), fmt_plusminus returns the number
  13. of bytes it would have written.
  14. .SH "SEE ALSO"
  15. fmt_minus(3), scan_plusminus(3)