X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=lib%2Fmbscasecmp.c;h=19f974b33fd516bf1b8c8e6cf3d994a9f9937f35;hb=a5c02266250d51d94c137f4fca8bec8e7654ff8c;hp=f63e64e3b72a29badad882e0c3d2659e7891fed1;hpb=394f3c1eec28989be315087013bb6546a03d40db;p=gnulib.git diff --git a/lib/mbscasecmp.c b/lib/mbscasecmp.c index f63e64e3b..19f974b33 100644 --- a/lib/mbscasecmp.c +++ b/lib/mbscasecmp.c @@ -3,10 +3,10 @@ Written by Bruno Haible , 2005, based on earlier glibc code. - This program is free software; you can redistribute it and/or modify + This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by - the Free Software Foundation; either version 2, or (at your option) - any later version. + the Free Software Foundation; either version 3 of the License, or + (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of @@ -14,8 +14,7 @@ GNU General Public License for more details. You should have received a copy of the GNU General Public License - along with this program; if not, write to the Free Software Foundation, - Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ + along with this program. If not, see . */ #include @@ -31,13 +30,13 @@ #define TOLOWER(Ch) (isupper (Ch) ? tolower (Ch) : (Ch)) -/* Compare strings S1 and S2, ignoring case, returning less than, equal to or - greater than zero if S1 is lexicographically less than, equal to or greater - than S2. +/* Compare the character strings S1 and S2, ignoring case, returning less than, + equal to or greater than zero if S1 is lexicographically less than, equal to + or greater than S2. Note: This function may, in multibyte locales, return 0 for strings of different lengths! */ int -strcasecmp (const char *s1, const char *s2) +mbscasecmp (const char *s1, const char *s2) { if (s1 == s2) return 0;