fwcscmp(3)
π fwcscmp(3) π
okay bestie, welcome to the fwcscmp(3) page from the Library Functions Manual β¨ we're about to get into fuzzy wide-character string comparison and it's giving main character energy, no cap. let's go π
β¨ NAME β¨
fwcscmp β fuzzy comparison of two wide-character strings π¦
πΈ SYNOPSIS πΈ
#include <fstrcmp.h>
#define FSTRCMP_IDENTICAL
#define FSTRCMP_THRESHOLD
#define FSTRCMP_ERROR
double fwcscmp(const wchar_t *string1, const wchar_t *string2);
π DESCRIPTION π
so like, fwcscmp() compares the two wide-character strings, string1 and string2. that's the whole vibe. it's a fuzzy comparison, not a strict equality thing, so it's lowkey obsessed with how similar they are rather than just "same or not same" π
β RETURN VALUE β
the fwcscmp function returns a floating point value between 0.0 and FSTRCMP_IDENTICAL. here's the tea:
- a value of
0.0means the two wide-character strings are utterly un-alike π - a value of
FSTRCMP_IDENTICALmeans the two wide-character strings are identical π - a value of more than
FSTRCMP_THRESHOLD(and just so you know,FSTRCMP_THRESHOLDlies between0.0andFSTRCMP_IDENTICAL) would be considered "similar" by most people π«Ά
and if you get a value of FSTRCMP_ERROR (which is always negative), that indicates a malloc(3) failure π
π SEE ALSO π
fstrcmp(3)β fuzzy comparison of two stringsfwcscmpi(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. the GNU Gettext comparison functions were, in turn, derived from GNU Diff 2.7.
Copyright (C) 1988-2009 Free Software Foundation
and that's a wrap on fwcscmp(3) π this was the Library Functions Manual page for fwcscmp(3), fstrcmp version 0.7, copyright 2009 Peter Miller β periodt. slay β¨π
π¦ 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