1fstrcmpi(3) Library Functions Manual fstrcmpi(3)
2
3
4
6 fstrcmpi - fuzzy comparison of two strings
7
9 #include <fstrcmp.h>
10 #define FSTRCMPI_IDENTICAL
11 #define FSTRCMPI_THRESHOLD
12 #define FSTRCMPI_ERROR
13 int fstrcmpi(const char *string1, const char *string2);
14
16 The fstrcmpi() function compares the two strings, string1 and string2.
17
19 The fstrcmpi function returns an int value between 0 and FSTRCMPI_IDEN‐
20 TICAL. A value of 0 means the strings are utterly un-alike. A value
21 of FSTRCMPI_IDENTICAL means the strings are identical. A value of more
22 than FSTRCMPI_THRESHOLD (it lies between 0 and FSTRCMPI_IDENTICAL)
23 would be considered "similar" by most people.
24
25 A value of FSTRCMPI_ERROR (always negative) indicates a malloc(3) fail‐
26 ure.
27
29 fstrcasecmpi(3)
30 compare two strings ignoring case
31
32 fstrcmp(3)
33 fuzzy comparison of two strings
34
35 fmemcmp(3)
36 fuzzy comparison of two memory areas
37
38 strcmp(3)
39 compare two strings
40
42 fstrcmp version 0.7
43 Copyright (C) 2009 Peter Miller
44 Peter Miller <pmiller@opensource.org.au>
45
46 The comparison code is derived from the fuzzy comparison functions in
47 GNU Gettext 0.17. The GNU Gettext comparison functions were, in turn,
48 derived from GNU Diff 2.7.
49
50 Copyright (C) 1988-2009 Free Software Foundation
51
52
53
54 fstrcmpi(3)