scan_nonwhitenskip(3)
β¨ scan_nonwhitenskip(3) β¨
okay bestie, buckle up, we're doing a lil library function today and honestly? she's a baddie. this one lives in the Library Functions Manual and her whole name is scan_nonwhitenskip π
π NAME π
scan_nonwhitenskip β skip non-whitespace π
like, that's it. that's the job. she skips the stuff that isn't whitespace. iconic behaviour, no notes.
πΈ SYNTAX πΈ
#include <libowfat/scan.h>
size_t scan_nonwhitenskip(const char *src,size_t limit);
π¦ DESCRIPTION π¦
okay so here's the tea, fr fr: scan_nonwhitenskip returns the length of the maximum prefix of src that consists solely of non-whitespace characters, as defined by !isspace. π«Ά
in normal-people terms? she walks along your string and counts how many characters in a row are not whitespace, then hands you that number back. that's the whole vibe. she does not care about anything past the first whitespace she trips over β she just stops, turns around, and goes "that's how far I got bestie" π
normally, "whitespace" here means everything except these lil guys:
' ''\f''\n''\r''\t''\v'
so it's literally every other character, periodt. π
also important, don't skip this part: src is considered to end at \0 or after limit characters. so whichever comes first, that's the finish line. she will not run past either one, no cap. π
π SEE ALSO π
(yeah she's referencing herself, main character energy only ππ)
and that's the whole page, babe β¨ this lil writeup came to you straight from the Library Functions Manual, starring scan_nonwhitenskip(3) herself β go forth and skip some non-whitespace, you absolute icon ππ¦πΈπ
π¦ 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