xref: /openbsd-src/gnu/usr.bin/texinfo/lib/strcase.h (revision a1acfa9b69ad64eb720639240c8438f11107dc85)
1*a1acfa9bSespie /* Case-insensitive string comparison functions.
2*a1acfa9bSespie    Copyright (C) 1995-1996, 2001, 2003 Free Software Foundation, Inc.
3*a1acfa9bSespie 
4*a1acfa9bSespie    This program is free software; you can redistribute it and/or modify
5*a1acfa9bSespie    it under the terms of the GNU General Public License as published by
6*a1acfa9bSespie    the Free Software Foundation; either version 2, or (at your option)
7*a1acfa9bSespie    any later version.
8*a1acfa9bSespie 
9*a1acfa9bSespie    This program is distributed in the hope that it will be useful,
10*a1acfa9bSespie    but WITHOUT ANY WARRANTY; without even the implied warranty of
11*a1acfa9bSespie    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12*a1acfa9bSespie    GNU General Public License for more details.
13*a1acfa9bSespie 
14*a1acfa9bSespie    You should have received a copy of the GNU General Public License
15*a1acfa9bSespie    along with this program; if not, write to the Free Software Foundation,
16*a1acfa9bSespie    Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.  */
17*a1acfa9bSespie 
18*a1acfa9bSespie #ifndef _STRCASE_H
19*a1acfa9bSespie #define _STRCASE_H
20*a1acfa9bSespie 
21*a1acfa9bSespie #include <stddef.h>
22*a1acfa9bSespie 
23*a1acfa9bSespie /* Compare strings S1 and S2, ignoring case, returning less than, equal to or
24*a1acfa9bSespie    greater than zero if S1 is lexicographically less than, equal to or greater
25*a1acfa9bSespie    than S2.
26*a1acfa9bSespie    Note: This function does not work correctly in multibyte locales.  */
27*a1acfa9bSespie extern int strcasecmp (const char *s1, const char *s2);
28*a1acfa9bSespie 
29*a1acfa9bSespie /* Compare no more than N characters of strings S1 and S2, ignoring case,
30*a1acfa9bSespie    returning less than, equal to or greater than zero if S1 is
31*a1acfa9bSespie    lexicographically less than, equal to or greater than S2.
32*a1acfa9bSespie    Note: This function can not work correctly in multibyte locales.  */
33*a1acfa9bSespie extern int strncasecmp (const char *s1, const char *s2, size_t n);
34*a1acfa9bSespie 
35*a1acfa9bSespie #endif /* _STRCASE_H */
36