STRCOLL(3) Linux Programmer's Manual STRCOLL(3)

NAME

strcoll - compare two strings using the current locale

SYNOPSIS

#include <string.h> int strcoll(const char *s1, const char *s2);

DESCRIPTION

The strcoll() function compares the two strings s1 and s2. It returns an integer less than, equal to, or greater than zero if s1 is found, respectively, to be less than, to match, or be greater than s2. The comparison is based on strings interpreted as appropriate for the program's cur- rent locale for category LC_COLLATE. (See setlocale(3)).

RETURN VALUE

The strcoll() function returns an integer less than, equal to, or greater than zero if s1 is found, respectively, to be less than, to match, or be greater than s2, when both are interpreted as appropriate for the current locale.

CONFORMING TO

SVID 3, BSD 4.3, ISO 9899

NOTES

The Linux C Library currently hasn't implemented the com- plete POSIX-collating. In the "POSIX" or "C" locales strcoll() is equivalent to strcmp().

SEE ALSO

bcmp, memcmp, strcasecmp, strcmp, strxfrm, setlocale,























GNU April 12, 1993 1


Top Master Index Keywords Functions


This manual page was brought to you by mjl_man V-2.0 href='/cgit.cgi/linux/net-next.git/diff/net/netlink?h=nds-private-remove&id=61aad724ec0a685bc83b02b059a3ca0ad3bde6b0'>diff
path: root/net/netlink
ame='context' onchange='this.form.submit();'>
AgeCommit message (Expand)AuthorFilesLines
space:
mode:
authorColin Ian King <colin.king@canonical.com>2017-01-11 15:36:20 +0000
committerMark Brown <broonie@kernel.org>2017-01-18 16:32:44 +0000
commitb98acbff9a05b371c5f0ca6e44a3af8ce9274379 (patch)
treed6835885f859a456e62ce93621041138d6a54f9b /sound/soc/codecs/wm8782.c
parentd00b74613fb18dfd0a5aa99270ee2e72d5c808d7 (diff)
regulator: twl6030: fix range comparison, allowing vsel = 59
The range min_uV > 1350000 && min_uV <= 150000 is never reachable because of a typo in the previous range check and hence vsel = 59 is never reached. Fix the previous range check to enable the vsel = 59 setting. Fixes CoverityScan CID#728454 ("Logially dead code") Signed-off-by: Colin Ian King <colin.king@canonical.com> Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/codecs/wm8782.c')