1 /* -*- buffer-read-only: t -*- vi: set ro: */ 2 /* DO NOT EDIT! GENERATED AUTOMATICALLY! */ 3 /* Case-insensitive string comparison functions in C locale. 4 Copyright (C) 1995-1996, 2001, 2003, 2005, 2009-2011 Free Software 5 Foundation, Inc. 6 7 This program is free software; you can redistribute it and/or modify 8 it under the terms of the GNU General Public License as published by 9 the Free Software Foundation; either version 3, or (at your option) 10 any later version. 11 12 This program is distributed in the hope that it will be useful, 13 but WITHOUT ANY WARRANTY; without even the implied warranty of 14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 GNU General Public License for more details. 16 17 You should have received a copy of the GNU General Public License 18 along with this program; if not, write to the Free Software Foundation, 19 Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ 20 21 #ifndef C_STRCASE_H 22 #define C_STRCASE_H 23 24 #include <stddef.h> 25 26 27 /* The functions defined in this file assume the "C" locale and a character 28 set without diacritics (ASCII-US or EBCDIC-US or something like that). 29 Even if the "C" locale on a particular system is an extension of the ASCII 30 character set (like on BeOS, where it is UTF-8, or on AmigaOS, where it 31 is ISO-8859-1), the functions in this file recognize only the ASCII 32 characters. More precisely, one of the string arguments must be an ASCII 33 string; the other one can also contain non-ASCII characters (but then 34 the comparison result will be nonzero). */ 35 36 37 #ifdef __cplusplus 38 extern "C" { 39 #endif 40 41 42 /* Compare strings S1 and S2, ignoring case, returning less than, equal to or 43 greater than zero if S1 is lexicographically less than, equal to or greater 44 than S2. */ 45 extern int c_strcasecmp (const char *s1, const char *s2); 46 47 /* Compare no more than N characters of strings S1 and S2, ignoring case, 48 returning less than, equal to or greater than zero if S1 is 49 lexicographically less than, equal to or greater than S2. */ 50 extern int c_strncasecmp (const char *s1, const char *s2, size_t n); 51 52 53 #ifdef __cplusplus 54 } 55 #endif 56 57 58 #endif /* C_STRCASE_H */ 59