-
-
Notifications
You must be signed in to change notification settings - Fork 3
fmt_minus.3
Manvendra Bhangui edited this page Feb 25, 2024
·
4 revisions
fmt_minus - write '-' for negative integers
#include <fmt.h>
unsigned int fmt_minus(char *dest,signed int source);
fmt_minus writes '-' if source is negative, nothing otherwise. It returns the number of bytes written.
fmt_minus does not append \0.
If dest equals FMT_LEN (i.e. is zero), fmt_minus returns the number of bytes it would have written.