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