CORSIKA add-on package IACT/ATMO:  Version 1.63 (November 2020)
straux.h
Go to the documentation of this file.
1 /* ============================================================================
2 
3  Copyright (C) 2001, 2010 Konrad Bernloehr
4 
5  This file is part of the eventio/hessio library.
6 
7  The eventio/hessio library is free software; you can redistribute it and/or
8  modify it under the terms of the GNU Lesser General Public
9  License as published by the Free Software Foundation; either
10  version 2.1 of the License, or (at your option) any later version.
11 
12  This library 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 GNU
15  Lesser General Public License for more details.
16 
17  You should have received a copy of the GNU Lesser General Public License
18  along with this library. If not, see <http://www.gnu.org/licenses/>.
19 
20 ============================================================================ */
21 
30 #ifndef STRAUX_H__LOADED
31 
32 #define STRAUX_H__LOADED 1
33 
34 /*---------------------------------------------------------------------*/
35 /* PROTOTYPES */
36 
37 #ifdef __cplusplus
38 extern "C" {
39 #endif
40 
41 #ifndef CONST
42 # define CONST const
43 #endif
44 
45 int abbrev (CONST char *s, CONST char *t);
46 int getword (CONST char *s, int *spos, char *word, int maxlen, char blank,
47  char endchar);
48 int stricmp (CONST char *a, CONST char *b);
49 
50 
51 #ifdef __cplusplus
52 }
53 #endif
54 
55 #endif
int stricmp(CONST char *a, CONST char *b)
Case independent comparison of character strings.
Definition: straux.c:148
int abbrev(CONST char *s, CONST char *t)
Compare strings s and t.
Definition: straux.c:54
int getword(CONST char *s, int *spos, char *word, int maxlen, char blank, char endchar)
Copies a blank or '\0' or < endchar > delimeted word from position *spos of the string s to the strin...
Definition: straux.c:96