fmemcmp(3)
β¨ NAME β¨
hey bestie, welcome to fmemcmp(3) from the Library Functions Manual π
fmemcmp β fuzzy comparison of two memory areas. it's literally the fuzzy-match bestie for raw memory. no cap. π¦
π SYNOPSIS π
#include <fstrcmp.h>
#define FSTRCMP_IDENTICAL
#define FSTRCMP_THRESHOLD
#define FSTRCMP_ERROR
double fmemcmp(const void *data1, size_t size1, const void *data2,
size_t size2);
πΈ DESCRIPTION πΈ
okay so fmemcmp() compares the two memory areas: the size1 bytes pointed to by data1, and the size2 bytes pointed to by data2. that's the whole job. it's giving "are these two chunks of memory alike or not?" π
π₯ RETURN VALUE π₯
fmemcmp returns a floating point value between 0.0 and FSTRCMP_IDENTICAL. here's the tea:
0.0means the memory areas are utterly un-alike. not even a little bit. πFSTRCMP_IDENTICALmeans the memory areas are identical. twins. periodt. π- a value of more than
FSTRCMP_THRESHOLD(it lies between0.0andFSTRCMP_IDENTICAL) would be considered "similar" by most people. so if you're over the threshold, the girlies are calling it similar. π«Ά FSTRCMP_ERROR(always negative) indicates amalloc(3)failure. π
π SEE ALSO π
fmemcmpi(3)β fuzzy comparison of two memory areasfstrcmp(3)β fuzzy comparison of two stringsmemcmp(3)β compare memory areas
π 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
mwah π that's a wrap on fmemcmp(3) from fstrcmp version 0.7, copyright 2009 Peter Miller (and the 1988-2009 Free Software Foundation era, too). stay fuzzy, 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, 2012 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