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

NAME

6       fstrcmp - fuzzy comparison of two strings
7

SYNOPSIS

9       #include <fstrcmp.h>
10       #define FSTRCMP_IDENTICAL
11       #define FSTRCMP_THRESHOLD
12       #define FSTRCMP_ERROR
13       double fstrcmp(const char *string1, const char *string2);
14

DESCRIPTION

16       The fstrcmp() function compares the two strings, string1 and string2.
17

RETURN VALUE

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

SEE ALSO

29       fmemcmp(3)
30               fuzzy comparison of two memory areas
31
32       fstrcasecmp(3)
33               fuzzy comparison of two strings ignoring case
34
35       fstrcmpi(3)
36               fuzzy comparison of two strings
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                                                                    fstrcmp(3)
Impressum