scan_plusminus(3)
β¨ scan_plusminus(3) β¨
okay so bestie, welcome to scan_plusminus(3) from the Library Functions Manual π this one is short and sweet and honestly kind of iconic for it.
πΈ NAME πΈ
scan_plusminus β parse '+' or '-' π
π SYNTAX π
#include <libowfat/scan.h>
size_t scan_plusminus(const char *src,int *dest);
π DESCRIPTION π
so here's the vibe: scan_plusminus looks at src and checks for an ASCII '+' or '-' sign. that's it. that's the whole job. no cap π«
- if it finds a
'+', it sets*destto1and returns1β¨ - if it finds a
'-', it sets*destto-1and returns1β¨
and if neither one is there? lowkey chill about it β '+' is assumed, and 0 is returned instead. π«Ά
fr fr: return value0β error, it just means "no sign, and I'm assuming'+'for you". bestie behaviour honestly π
and that's the whole page, this was scan_plusminus(3) from the Library Functions Manual, section 3 π she's small, she's perfect, she does exactly one thing and she ate π
π¦ 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