Octave-Forge - Extra packages for GNU Octave | |
Home · Packages · Developers · Documentation · FAQ · Bugs · Mailing Lists · Links · Code |
00001 /* -*- buffer-read-only: t -*- vi: set ro: */ 00002 /* DO NOT EDIT! GENERATED AUTOMATICALLY! */ 00003 /* Case-insensitive string comparison functions in C locale. 00004 Copyright (C) 1995-1996, 2001, 2003, 2005, 2009-2011 Free Software 00005 Foundation, Inc. 00006 00007 This program is free software; you can redistribute it and/or modify 00008 it under the terms of the GNU General Public License as published by 00009 the Free Software Foundation; either version 3, or (at your option) 00010 any later version. 00011 00012 This program is distributed in the hope that it will be useful, 00013 but WITHOUT ANY WARRANTY; without even the implied warranty of 00014 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00015 GNU General Public License for more details. 00016 00017 You should have received a copy of the GNU General Public License 00018 along with this program; if not, write to the Free Software Foundation, 00019 Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ 00020 00021 #ifndef C_STRCASE_H 00022 #define C_STRCASE_H 00023 00024 #include <stddef.h> 00025 00026 00027 /* The functions defined in this file assume the "C" locale and a character 00028 set without diacritics (ASCII-US or EBCDIC-US or something like that). 00029 Even if the "C" locale on a particular system is an extension of the ASCII 00030 character set (like on BeOS, where it is UTF-8, or on AmigaOS, where it 00031 is ISO-8859-1), the functions in this file recognize only the ASCII 00032 characters. More precisely, one of the string arguments must be an ASCII 00033 string; the other one can also contain non-ASCII characters (but then 00034 the comparison result will be nonzero). */ 00035 00036 00037 #ifdef __cplusplus 00038 extern "C" { 00039 #endif 00040 00041 00042 /* Compare strings S1 and S2, ignoring case, returning less than, equal to or 00043 greater than zero if S1 is lexicographically less than, equal to or greater 00044 than S2. */ 00045 extern int c_strcasecmp (const char *s1, const char *s2); 00046 00047 /* Compare no more than N characters of strings S1 and S2, ignoring case, 00048 returning less than, equal to or greater than zero if S1 is 00049 lexicographically less than, equal to or greater than S2. */ 00050 extern int c_strncasecmp (const char *s1, const char *s2, size_t n); 00051 00052 00053 #ifdef __cplusplus 00054 } 00055 #endif 00056 00057 00058 #endif /* C_STRCASE_H */