str_start(3)
π str_start(3) β Library Functions Manual β¨
okay bestie, welcome to the str_start page, fresh off the Library Functions Manual press π she's a tiny function with one job and she does it flawlessly, no cap.
πΈ NAME πΈ
str_start β compare prefixes of strings π¦
like. she checks if one string is the beginning of another. that's the whole vibe. iykyk.
β¨ SYNTAX β¨
#include <libowfat/str.h>
size_t str_start(const char* a,const char* b);
yes the include is literally <libowfat/str.h>, don't @ me, just paste it in π
π DESCRIPTION π
str_start returns 1 if b is a prefix of a, and 0 otherwise.
that's it. that's the function. main character energy with zero drama β¨
so like, quick vibe check: is b sitting right at the front of a, all cozy, matching character for character? then you get a 1. if not? 0. no in-between, no maybe, she's not ambiguous π
fr fr that's the whole contract. read it, love it, ship it π«Ά
π SEE ALSO π
strncmp(3)β go give her a lil visit too, she's the cousin who does the actual comparing π
and that's the page, bestie!! π§ you just read the str_start(3) manual page from the Library Functions Manual, and honestly? iconic of you. go forth and prefix-compare responsibly ππβ
π¦ 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