case_starts(3)
β¨ NAME β¨
okay so bestie, meet case_starts β she compares prefixes of strings, and she does it case-insensitively. π
this one lives in the Library Functions Manual, section 3, and she's giving very chill, very "does exactly what it says on the tin" energy.
π¦ SYNTAX π¦
#include <libowfat/case.h>
int case_starts(const char* a,const char* b);
πΈ DESCRIPTION πΈ
so here's the tea: case_starts returns 1 if b is a prefix of a, and 0 otherwise. that's it, that's the whole plot. π
1βbis a prefix ofa0β literally any other situation
and when she says case-insensitively, she means it fr fr: for this comparison,
'A' == 'a''B' == 'b'- ...
'Z' == 'z'
no cap. uppercase and lowercase are just besties here. periodt. π
π SEE ALSO π
and that's the whole page, babe. this lil icon comes from the Library Functions Manual, section 3, and the footer is just case_starts(3) echoing her own name back at you like the main character she is. π«Άβ¨
π¦ 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