logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

fmt_minus - write '-' for negative integers

Description

       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.

Name

       fmt_minus - write '-' for negative integers

See Also

fmt_plusminus(3), scan_plusminus(3)

                                                                                                    fmt_minus(3)

Syntax

#include<libowfat/fmt.h>

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

See Also