2 * Copyright notice from original mutt:
3 * Copyright (C) 2001 Thomas Roessler <roessler@does-not-exist.org>
5 * This file is part of mutt-ng, see http://www.muttng.org/.
6 * It's licensed under the GNU General Public License,
7 * please see the file GPL in the top level source directory.
11 * Versions of the string comparison functions which are
19 int ascii_strcasecmp(const char *a, const char *b)
30 for (; *a || *b; a++, b++) {
31 if ((i = ascii_tolower(*a) - ascii_tolower(*b)))
38 int ascii_strncasecmp (const char *a, const char *b, int n)
49 for (j = 0; (*a || *b) && j < n; a++, b++, j++) {
50 if ((i = ascii_tolower(*a) - ascii_tolower(*b)))