str_diffn(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, welcome to str_diffn(3) from the Library Functions Manual ✨. This function is literally called str_diffn, and its whole main character job is: compare two ASCIIZ strings πŸ’…. No cap, that's the name description fr fr.

✨ SYNTAX ✨

#include <libowfat/str.h>

int str_diffn(const char* a,const char* b,size_t limit);

πŸ’– DESCRIPTION πŸ’–

ngl, here's the tea β˜•: str_diffn returns negative, 0, or positive, depending on whether the string a[0], a[1], ..., a[n]=='\0' is lexicographically smaller than, equal to, or greater than the string b[0], b[1], ..., b[m-1]=='\0' 🫢. It's giving comparison, it's giving lexicographic order, it's giving iconic 🌈.

If the strings are different, str_diffn does not read bytes past the first difference. periodt πŸ’…. The strings will be considered equal if the first limit characters match. That's the whole vibe check, bestie 🌸.

πŸ¦‹ SEE ALSO πŸ¦‹


and that's the tea β˜•: str_diffn(3) from the Library Functions Manual. The original footer didn't have any extra source/version/date line beyond that, so we're leaving it mysterious and undated β€” stay iconic, bestie πŸ’–βœ¨πŸ¦‹