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

NAME

6       fmemcmpi - fuzzy comparison of two memory areas
7

SYNOPSIS

9       #include <fstrcmp.h>
10       #define FSTRCMPI_IDENTICAL
11       #define FSTRCMPI_THRESHOLD
12       #define FSTRCMPI_ERROR
13       int fmemcmpi(const void *data1, size_t size1, const void *data2, size_t
14            size2);
15

DESCRIPTION

17       The fmemcmpi() 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 fmemcmpi function returns an int value between 0 and FSTRCMPI_IDEN‐
22       TICAL.  A value of 0 means the memory areas are  utterly  un‐alike.   A
23       value  of  FSTRCMPI_IDENTICAL  means the memory areas are identical.  A
24       value of more than FSTRCMPI_THRESHOLD (it lies between  0.0  and  FSTR‐
25       CMP_IDENTICAL) would be considered "similar" by most people.
26
27       A value of FSTRCMPI_ERROR (always negative) indicates a malloc(3) fail‐
28       ure.
29

SEE ALSO

31       fmemcmp(3)
32               fuzzy comparison of two memory areas
33
34       fstrcmpi(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                                                                   fmemcmpi(3)
Impressum