liblcf
Main Page
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
ini.h
Go to the documentation of this file.
1
/*
2
* inih -- simple .INI file parser
3
*
4
* Go to the project home page for more info:
5
* http://code.google.com/p/inih/
6
*
7
* inih and INIReader are released under the New BSD license:
8
*
9
* Copyright (c) 2009, Brush Technology
10
* All rights reserved.
11
*
12
* Redistribution and use in source and binary forms, with or without
13
* modification, are permitted provided that the following conditions are met:
14
* * Redistributions of source code must retain the above copyright
15
* notice, this list of conditions and the following disclaimer.
16
* * Redistributions in binary form must reproduce the above copyright
17
* notice, this list of conditions and the following disclaimer in the
18
* documentation and/or other materials provided with the distribution.
19
* * Neither the name of Brush Technology nor the names of its contributors
20
* may be used to endorse or promote products derived from this software
21
* without specific prior written permission.
22
*
23
* THIS SOFTWARE IS PROVIDED BY BRUSH TECHNOLOGY ''AS IS'' AND ANY
24
* EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
25
* WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
26
* DISCLAIMED. IN NO EVENT SHALL BRUSH TECHNOLOGY BE LIABLE FOR ANY
27
* DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
28
* (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
29
* LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
30
* ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
31
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
32
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
33
*/
34
35
#ifndef LCF_INI_H
36
#define LCF_INI_H
37
38
// Make this header file easier to include in C++ code
39
#ifdef __cplusplus
40
extern
"C"
{
41
#endif
42
55
int
ini_parse
(
const
char
* filename,
56
int
(*handler)(
void
* user,
const
char
* section,
57
const
char
* name,
const
char
* value),
58
void
* user);
59
65
#ifndef INI_ALLOW_MULTILINE
66
#define INI_ALLOW_MULTILINE 1
67
#endif
68
69
#ifdef __cplusplus
70
}
71
#endif
72
73
#endif
ini_parse
int ini_parse(const char *filename, int(*handler)(void *user, const char *section, const char *name, const char *value), void *user)
src
ini.h
Generated on Tue Dec 2 2014 20:12:11 for liblcf by
1.8.8