case_diffb(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

✨ case_diffb β€” like, the case-insensitive string comparer bestie πŸ’…

okay so real talk, this one lives in section 3 of the Library Functions Manual (the library functions girlies, we love her) and she's about to become your new fave for comparing strings without getting all weird about capital letters. πŸŽ€


🌸 NAME 🌸

case_diffb β€” compare strings case-insensitively


πŸ¦‹ SYNTAX πŸ¦‹

#include <libowfat/case.h>

int case_diffb(const void* a,size_t len,const void* b);

πŸ’– DESCRIPTION πŸ’–

so case_diffb is basically byte_diff's cooler twin. same energy, same vibe, same job β€” the one difference (and it's iconic, fr fr) is that when she's comparing, she treats 'A' == 'a', 'B' == 'b', ... all the way down to 'Z' == 'z'. ✨

like. uppercase and lowercase are the same girl to her. she does not care. she does not gatekeep. she compares len bytes of whatever a and b are pointing at and case is simply not the drama. πŸ‘‘


🌈 SEE ALSO 🌈

  • byte_diff(3) β€” the original, the blueprint, the blueprint-est. go say hi. 🫢

and that's the whole page bestie!! mwah πŸ’œ

this cutie came to you straight from the Library Functions Manual β€” no date stamp on this one, she's timeless like that. go forth and compare case-insensitively. slay. 🌟