1fmemcmp(3)                 Library Functions Manual                 fmemcmp(3)
2
3
4

NAME

6       fmemcmp - fuzzy comparison of two memory areas
7

SYNOPSIS

9       #include <fstrcmp.h>
10       #define FSTRCMP_IDENTICAL
11       #define FSTRCMP_THRESHOLD
12       #define FSTRCMP_ERROR
13       double  fmemcmp(const  void  *data1,  size_t  size1, const void *data2,
14            size_t size2);
15

DESCRIPTION

17       The fmemcmp() function compares the two memory areas, the  size1  bytes
18       pointed to by data1 and the size2 bytes pointed to by data2.
19

RETURN VALUE

21       The  fmemcmp  function  returns  a floating point value between 0.0 and
22       FSTRCMP_IDENTICAL.  A value of 0.0 means the memory areas  are  utterly
23       un‐alike.   A  value  of  FSTRCMP_IDENTICAL  means the memory areas are
24       identical.  A value of more than FSTRCMP_THRESHOLD (it lies between 0.0
25       and FSTRCMP_IDENTICAL) would be considered "similar" by most people.
26
27       A  value of FSTRCMP_ERROR (always negative) indicates a malloc(3) fail‐
28       ure.
29

SEE ALSO

31       fmemcmpi(3)
32               fuzzy comparison of two memory areas
33
34       fstrcmp(3)
35               fuzzy comparison of two strings
36
37       memcmp(3)
38               compare memory areas
39
41       fstrcmp version 0.7
42       Copyright (C) 2009 Peter Miller
43       Peter Miller <pmiller@opensource.org.au>
44
45       The comparison code is derived from the fuzzy comparison  functions  in
46       GNU  Gettext 0.17.  The GNU Gettext comparison functions were, in turn,
47       derived from GNU Diff 2.7.
48
49       Copyright (C) 1988-2009 Free Software Foundation
50
51
52
53                                                                    fmemcmp(3)
Impressum