scan_whitenskip(3)
π scan_whitenskip β NAME π
okay bestie, this one's called scan_whitenskip, and it's a lil function from the Library Functions Manual, section 3 (that's the C library girlies, iykyk). and what does it do? skip whitespace. that's it. that's the whole vibe. she skips, she's white, she's space. periodt. β¨
π¦ SYNTAX π¦
so first things first, you gotta bring her in:
#include <libowfat/scan.h>
size_t scan_whitenskip(const char *src,size_t limit);
two args, one size_t coming back at you, no cap. π
πΈ DESCRIPTION πΈ
okay so here's the tea π β scan_whitenskip returns the length of the maximum prefix of src that consists solely of whitespace characters as defined by isspace.
translation for the group chat: she looks at src from the very start, keeps walking while everything is whitespace, and when she finally hits a non-whitespace character she stops and tells you how many steps she took. maximum prefix energy. she does not skip past anything else, she does not get distracted, she's locked in. π
and what counts as whitespace around here? normally, this is ' ', '\f', '\n', '\r', '\t', '\v'. that's space, form feed, newline, carriage return, tab, vertical tab. the whole lil crew. π
and yeah, it's whatever yourisspacesays it is β the manpage says "as defined byisspace", so the locale gets a say. don't come for me, I'm just the messenger. π
β SEE ALSO β
scan_nonwhitenskip(3)β the opposite twin fr fr, she skips everything that isn't whitespace. they're giving complementary main character energy, obsessed. π«Ά
okay that's the whole page, bestie π this was scan_whitenskip(3) from the Library Functions Manual, and the footer was literally just her name again β scan_whitenskip(3) β because she's iconic enough to need no date, no version, no nothing. just vibes. π
β¨π
π¦ 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