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

NAME

6       fstrcoll - fuzzy comparison of two strings using the current locale
7

SYNOPSIS

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

DESCRIPTION

16       The  strcoll()  function  compares  the two strings sting1 and string2.
17       The comparison is based on strings interpreted as appropriate  for  the
18       program's current locale for category LC_CTYPE.
19

RETURN VALUE

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

SEE ALSO

31       fstrcmp(3)
32               fuzzy comparison of two strings
33
34       fstrcolli(3)
35               fuzzy comparison of two strings using the current locale
36
37       strcoll(3)
38               compare two strings using the current locale
39
40       mbstowcs(3)
41               convert a multibyte string to a wide-character string
42
44       fstrcmp version 0.7
45       Copyright (C) 2009 Peter Miller
46       Peter Miller <pmiller@opensource.org.au>
47
48       The comparison code is derived from the fuzzy comparison  functions  in
49       GNU  Gettext 0.17.  The GNU Gettext comparison functions were, in turn,
50       derived from GNU Diff 2.7.
51
52       Copyright (C) 1988-2009 Free Software Foundation
53
54
55
56                                                                   fstrcoll(3)
Impressum