]> git.ipfire.org Git - thirdparty/util-linux.git/commit
include/cctype: add c_strcasecmp() and c_strncasecmp()
authorKarel Zak <kzak@redhat.com>
Wed, 4 Jan 2023 17:34:03 +0000 (18:34 +0100)
committerKarel Zak <kzak@redhat.com>
Wed, 4 Jan 2023 17:34:03 +0000 (18:34 +0100)
commitd2246a5bcf654fdefbd33a5cb2c6437f888e87e0
tree5a16ef7312274a8375ad885b4e7e9ea72d6aa296
parent1958eb2530620f51685f6cf34b7df06d0d2c7ab3
include/cctype: add c_strcasecmp() and c_strncasecmp()

Sometimes, we need to compare ASCII-only strings independently on the
current locales. Let's follow our cctype.h to implement such functions.

Addresses: https://github.com/util-linux/util-linux/issues/1991
Signed-off-by: Karel Zak <kzak@redhat.com>
include/cctype.h
lib/strutils.c