str_diffn(3)
πΈ 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 πβ¨π¦
π¦ 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