case_starts(3)

πŸ“¦
version 0.34 Β· 2 versions
  • 0.34 Β· alpine 3.24, debian bookworm, debian trixie, nixos 26.05, nixpkgs unstable, opensuse-leap 16.0, ubuntu noble, ubuntu questing, ubuntu resolute, ubuntu stonking (latest)
  • 0.30 Β· fedora 43, fedora 44, ubuntu jammy
, in alpine 3.24, debian bookworm, debian trixie, nixos 26.05, nixpkgs unstable, opensuse-leap 16.0, ubuntu noble, ubuntu questing, ubuntu resolute, ubuntu stonking

✨ 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 β€” b is a prefix of a
  • 0 β€” 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. 🫢✨