case_diffs(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_diffs(3) πŸ’–

okay bestie, welcome to case_diffs(3) β€” straight out of the Library Functions Manual and she is short, sweet, and does exactly one thing. no notes. let's go 🫢


🌸 NAME 🌸

case_diffs β€” compare strings case-insensitively


πŸ¦‹ SYNTAX πŸ¦‹

like literally this is the whole thing:

#include <libowfat/case.h>

int case_diffs(const char* a,const char* b);

she takes two const char* besties named a and b, and hands you back an int. that's it, that's the vibe ✨


πŸ’– DESCRIPTION πŸ’–

so case_diffs is basically str_diff's cousin β€” same energy, same job, same int in return. the one difference (and it's the whole point, iykyk) is that she's not out here being picky about capitalisation.

for her comparison, the letters are all equal in her eyes:

  • 'A' == 'a'
  • 'B' == 'b'
  • ... and so on all the way down πŸ’…
  • 'Z' == 'z'

periodt. uppercase and lowercase are the same girl to her, no cap. 🌈


πŸ”₯ SEE ALSO πŸ”₯


ok so that's the whole page, bestie β€” iconic, brief, ate πŸ’…. this was the case_diffs(3) page from the Library Functions Manual, and ngl the footer is literally just case_diffs(3) β€” no version number, no date, nothing else to spill, she's mysterious like that πŸ™ˆπŸ’–