fwcscmpi(3)
π fwcscmpi β bestie edition π
okay so you found a page in the Library Functions Manual and it's about fwcscmpi, and honestly? it's giving "fuzzy vibes only." sit down, grab a strawberry π, and let's get into it.
β¨ NAME β¨
fwcscmpi β fuzzy comparison of two wide-character strings
like... it compares two wide strings but it's NOT a hater about it, it's a fuzzy comparison, iykyk π
π¦ SYNOPSIS π¦
#include <fstrcmp.h>
#define FSTRCMPI_IDENTICAL
#define FSTRCMPI_THRESHOLD
#define FSTRCMPI_ERROR
int fwcscmpi(const wchar_t *string1, const wchar_t *string2);
πΈ DESCRIPTION πΈ
so the fwcscmpi() function compares the two wide-character strings, string1 and string2. that's it. that's the whole thing. no cap.
π RETURN VALUE π
fwcscmpi hands back an int value between 0 and FSTRCMPI_IDENTICAL. let's break it down bestie:
0β the two wide-character strings are utterly un-alike. like, not even a little bit. strangers. never met. πFSTRCMPI_IDENTICALβ the two wide-character strings are identical. twins. soulmates. periodt. β¨- anything more than
FSTRCMPI_THRESHOLD(and just so we're clear, that value lies between0andFSTRCMPI_IDENTICAL) β most people would consider that "similar" π«Ά
and then there's FSTRCMPI_ERROR, which is always negative, and it means a malloc(3) failure happened. so if you see a negative number, that's not a vibe check fail, that's a memory allocation fail π
ngl if you getFSTRCMPI_ERRORjust know it'smalloc(3)'s fault and not yours, bestie.
π SEE ALSO π
fstrcmp(3)β fuzzy comparison of two stringsfwcscmp(3)β fuzzy comparison of two wide-character stringswcscmp(3)β compare two wide-character strings
π COPYRIGHT π
fstrcmp version 0.7 Copyright (C) 2009 Peter Miller Peter Miller <pmiller@opensource.org.au>
the comparison code is derived from the fuzzy comparison functions in GNU Gettext 0.17. and those GNU Gettext comparison functions were, in turn, derived from GNU Diff 2.7. it's a whole lineage, an ancestry dot com moment fr fr π§¬
Copyright (C) 1988-2009 Free Software Foundation
and that's the whole page bestie!! this one came to you straight out of the Library Functions Manual, and it's the fwcscmpi page, fstrcmp version 0.7, copyright 2009 Peter Miller energy all the way through. go compare some wide strings, you main character ππ
π¦ where this page comes from
- debian bookworm: libfstrcmp-dev 0.7.D001-3 Β· LGPL-3.0-or-later
- debian trixie: libfstrcmp-dev 0.7.D001-5 Β· GPL-3.0-or-later
- fedora 43: fstrcmp-devel 0.7.D001-26.fc43 Β· GPL-3.0-or-later
- fedora 43: fstrcmp-devel 0.7.D001-26.fc43 Β· GPL-3.0-or-later
- fedora 44: fstrcmp-devel 0.7.D001-27.fc44 Β· GPL-3.0-or-later
- fedora 44: fstrcmp-devel 0.7.D001-27.fc44 Β· GPL-3.0-or-later
- opensuse-leap 16.0: fstrcmp-devel 0.7.D001-bp160.1.12 Β· GPL-3.0-or-later
- opensuse-leap 16.0: fstrcmp-devel 0.7.D001-bp160.1.12 Β· GPL-3.0-or-later
- opensuse-leap 16.0: fstrcmp-devel 0.7.D001-bp160.1.12 Β· GPL-3.0-or-later
- opensuse-leap 16.0: fstrcmp-devel 0.7.D001-bp160.1.12 Β· GPL-3.0-or-later
- ubuntu jammy: libfstrcmp-dev 0.7.D001-2 Β· LGPL-3.0-or-later
- ubuntu noble: libfstrcmp-dev 0.7.D001-3build1 Β· LGPL-3.0-or-later
- ubuntu questing: libfstrcmp-dev 0.7.D001-5
- ubuntu resolute: libfstrcmp-dev 0.7.D001-5build1 Β· GPL-3.0-or-later
- ubuntu stonking: libfstrcmp-dev 0.7.D001-5build1 Β· GPL-3.0-or-later
- Copyright (C) 2009, 2011 Peter Miller
- Copyright (C) 2009 Peter Miller
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms