Skip site navigation (1)Skip section navigation (2)

FreeBSD Manual Pages

  
 
  

home | help
fmt_plusminus(3)	   Library Functions Manual	      fmt_plusminus(3)

NAME
       fmt_plusminus - write '+' or '-'

SYNTAX
       #include	<fmt.h>

       size_t fmt_plusminus(char *dest,signed int source);

DESCRIPTION
       fmt_plusminus  writes  '-' to dest if source is negative, '+' if	source
       is positive, nothing otherwise.	It returns the number of  bytes	 writ-
       ten.

       fmt_plusminus does not append \0.

       If dest equals FMT_LEN (i.e. is zero), fmt_plusminus returns the	number
       of bytes	it would have written.

SEE ALSO
       fmt_minus(3), scan_plusminus(3)

							      fmt_plusminus(3)

NAME | SYNTAX | DESCRIPTION | SEE ALSO

Want to link to this manual page? Use this URL:
<https://www.freebsd.org/cgi/man.cgi?query=libowfat_fmt_plusminus&sektion=3&manpath=FreeBSD+13.0-RELEASE+and+Ports>

home | help