fmt_minus(3)
β¨ NAME β¨
okay bestie, say hi to fmt_minus(3) from the Library Functions Manual. Its whole personality? Writing a '-' for negative integers. That's the name, that's the game. π
π SYNTAX π
#include <libowfat/fmt.h>
size_t fmt_minus(char *dest,signed int source);
πΈ DESCRIPTION πΈ
so here's the tea, fr fr: fmt_minus writes '-' if source is negative. If source is not negative, it writes nothing. That's it. It returns the number of bytes written. π
not me forgetting the null terminator:fmt_minusdoes not append\0. No cap. π«Ά
if dest equals FMT_LEN (i.e. is zero), then fmt_minus returns the number of bytes it would have written. It's giving βjust the length, pleaseβ energy. π
π¦ SEE ALSO π¦
and that's the page, bestie. The footer is just fmt_minus(3), and the source is the Library Functions Manual β no extra date/version line, so consider this your cute sign-off. periodt πβ¨
π¦ where this page comes from
- alpine 3.24: libowfat-doc 0.34-r0 Β· GPL-2.0-only
- debian bookworm: libowfat-dev 0.32-4 Β· GPL-2.0-only
- debian trixie: libowfat-dev 0.32-5 Β· GPL-2.0-only
- nixos 26.05: libowfat 0.34
- nixpkgs unstable: libowfat 0.34
- opensuse-leap 16.0: libowfat-devel 0.33-bp160.1.11 Β· GPL-2.0-only
- opensuse-leap 16.0: libowfat-devel 0.33-bp160.1.11 Β· GPL-2.0-only
- opensuse-leap 16.0: libowfat-devel 0.33-bp160.1.11 Β· GPL-2.0-only
- opensuse-leap 16.0: libowfat-devel 0.33-bp160.1.11 Β· GPL-2.0-only
- ubuntu noble: libowfat-dev 0.32-4.1build1 Β· GPL-2.0-only
- ubuntu questing: libowfat-dev 0.32-5
- ubuntu resolute: libowfat-dev 0.34-2 Β· GPL-2.0-only
- ubuntu stonking: libowfat-dev 0.34-2 Β· GPL-2.0-only
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms