DSL
ini-reader.h
1 //@AUTOHEADER@BEGIN@
2 /***********************************************************************\
3 | Drift Standard Libraries v1.01 |
4 | Copyright 2010-2023 Drift Solutions / Indy Sams |
5 | Docs and more information available at https://www.driftsolutions.dev |
6 | This file released under the 3-clause BSD license, |
7 | see included DSL.LICENSE.TXT file for details. |
8 \***********************************************************************/
9 //@AUTOHEADER@END@
10 
11 #ifndef __INI_READER_H__
12 #define __INI_READER_H__
13 
22 DSL_API char * DSL_CC Get_INI_String(const char * pszFilename, const char *pszSection, const char *pszItem, char *pszValue, size_t lValueBufferSize, const char * pszDefault = NULL);
23 DSL_API int64 DSL_CC Get_INI_Int(const char *pszFilename, const char *section, const char *item, int64 iDefault = 0);
24 DSL_API double DSL_CC Get_INI_Float(const char * pszFilename, const char *section, const char *item, double iDefault = 0);
25 
26 DSL_API char * DSL_CC Get_INI_String_Memory(const char * cINIFile, const char *pszSection, const char *pszItem, char *pszValue, size_t lValueBufferSize, const char * pszDefault = NULL);
27 DSL_API int64 DSL_CC Get_INI_Int_Memory(const char * cINIFile, const char *section, const char *item, int64 iDefault = 0);
28 DSL_API double DSL_CC Get_INI_Float_Memory(const char * cINIFile, const char *section, const char *item, double iDefault = 0);
29 
30 DSL_API int DSL_CC Write_INI_String(const char *pszPath, const char *pszSection, const char *pszItem, const char *pszValue);
31 DSL_API int DSL_CC Write_INI_Int(const char *pszPath, const char *pszSection, const char *pszItem, int64 iValue);
32 
35 #endif // __INI_READER_H__
36