fstrcolli(3)
π fstrcolli(3) π
okay bestie, this one lives in the Library Functions Manual, section 3 (that's the "C library functions" shelf, iykyk) β¨
πΈ NAME πΈ
fstrcolli β fuzzy comparison of two strings using the current locale
β¨ SYNOPSIS β¨
#include <fstrcmp.h>
#define FSTRCMP_IDENTICAL
#define FSTRCMP_THRESHOLD
#define FSTRCMP_ERROR
int fstrcolli(const char *string1, const char *string2);
π¦ DESCRIPTION π¦
so the strcolli() function compares the two strings string1 and string2. (the manpage literally spells it sting1, no shade, typo era, it means string1 π«Ά)
the comparison is based on strings interpreted as appropriate for the program's current locale, for category LC_CTYPE. so like, locale girlies, this one's for you π
π RETURN VALUE π
fstrcolli hands back an int value between 0 and FSTRCMPI_IDENTICAL. here's the vibe check on what those numbers mean:
0β the strings are utterly unalike. not a single crumb in common. πFSTRCMPI_IDENTICALβ the strings are identical. periodt, twins, matching outfits π―- more than
FSTRCMPI_THRESHOLD(which lies between0andFSTRCMPI_IDENTICAL) β most people would consider that "similar" π like, not the same girl but definitely cousins FSTRCMPI_ERROR(always negative) β this one means amalloc(3)ormbstowcs(3)failure happened. red flag, abort mission, the allocation did not slay π
heads up: the#defines up in the synopsis are spelledFSTRCMP_IDENTICAL,FSTRCMP_THRESHOLDandFSTRCMP_ERROR, while the return value section talks aboutFSTRCMPI_IDENTICAL,FSTRCMPI_THRESHOLDandFSTRCMPI_ERROR. that's just how the page is written, bestie β I'm not touching it, not my job, I just report the lore π
π₯ SEE ALSO π₯
fstrcmpi(3)β fuzzy comparison of two stringsfstrcoll(3)β fuzzy comparison of two strings using the current localestrcoll(3)β compare two strings using the current localembstowcs(3)β convert a multibyte string to a wide-character string
π COPYRIGHT π
fstrcmpversion0.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.
- Copyright (C) 1988-2009 Free Software Foundation
okay that's the whole page, we ate and left no crumbs ππ
this was fstrcolli(3) from fstrcmp version 0.7, copyright vibes going all the way back to 2009 (and the Free Software Foundation holding it down since 1988) β stay fuzzy, stay slay, bye bestie π§π
π¦ 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