\hypertarget{ciniparser_8c}{}\section{/home/mk/tmp/lirc/lib/ciniparser.c File Reference}
\label{ciniparser_8c}\index{/home/mk/tmp/lirc/lib/ciniparser.\+c(9c596ec 2015-\/02-\/10 14\+:16\+:32 +0100)@{/home/mk/tmp/lirc/lib/ciniparser.\+c(9c596ec 2015-\/02-\/10 14\+:16\+:32 +0100)}}


Parser for ini files.  


{\ttfamily \#include $<$ctype.\+h$>$}\\*
{\ttfamily \#include $<$ciniparser.\+h$>$}\\*
\subsection*{Macros}
\begin{DoxyCompactItemize}
\item 
\hypertarget{group__ciniparser_gaeb84e295ec3307b215991d4bf88bceb7}{}\#define {\bfseries A\+S\+C\+I\+I\+L\+I\+N\+E\+S\+Z}~(1024)\label{group__ciniparser_gaeb84e295ec3307b215991d4bf88bceb7}

\item 
\hypertarget{group__ciniparser_gafd7ba4a10fc951dcb65fa2b001afb7a4}{}\#define {\bfseries I\+N\+I\+\_\+\+I\+N\+V\+A\+L\+I\+D\+\_\+\+K\+E\+Y}~((char$\ast$)N\+U\+L\+L)\label{group__ciniparser_gafd7ba4a10fc951dcb65fa2b001afb7a4}

\end{DoxyCompactItemize}
\subsection*{Typedefs}
\begin{DoxyCompactItemize}
\item 
typedef enum \hyperlink{group__ciniparser_ga2fdd0675424601a39f3534cf0088822c}{\+\_\+line\+\_\+status\+\_\+} \hyperlink{group__ciniparser_gadc101255f1686a23210fb9ea88394d46}{line\+\_\+status}
\end{DoxyCompactItemize}
\subsection*{Enumerations}
\begin{DoxyCompactItemize}
\item 
enum \hyperlink{group__ciniparser_ga2fdd0675424601a39f3534cf0088822c}{\+\_\+line\+\_\+status\+\_\+} \{ \\*
{\bfseries L\+I\+N\+E\+\_\+\+U\+N\+P\+R\+O\+C\+E\+S\+S\+E\+D}, 
{\bfseries L\+I\+N\+E\+\_\+\+E\+R\+R\+O\+R}, 
{\bfseries L\+I\+N\+E\+\_\+\+E\+M\+P\+T\+Y}, 
{\bfseries L\+I\+N\+E\+\_\+\+C\+O\+M\+M\+E\+N\+T}, 
\\*
{\bfseries L\+I\+N\+E\+\_\+\+S\+E\+C\+T\+I\+O\+N}, 
{\bfseries L\+I\+N\+E\+\_\+\+V\+A\+L\+U\+E}
 \}
\end{DoxyCompactItemize}
\subsection*{Functions}
\begin{DoxyCompactItemize}
\item 
int \hyperlink{group__ciniparser_ga306ec559a5feef2a44712a16a72ba64b}{ciniparser\+\_\+getnsec} (\hyperlink{group__ciniparser_ga5bd3b2ce42b776c76755ec65642f43af}{dictionary} $\ast$d)
\begin{DoxyCompactList}\small\item\em Get number of sections in a dictionary. \end{DoxyCompactList}\item 
const char $\ast$ \hyperlink{group__ciniparser_ga57f6090b503edee285e7897b280ee6d0}{ciniparser\+\_\+getsecname} (\hyperlink{group__ciniparser_ga5bd3b2ce42b776c76755ec65642f43af}{dictionary} $\ast$d, int n)
\begin{DoxyCompactList}\small\item\em Get name for section n in a dictionary. \end{DoxyCompactList}\item 
void \hyperlink{group__ciniparser_gac3baf2303bc7715836462364ad3d1b71}{ciniparser\+\_\+dump} (\hyperlink{group__ciniparser_ga5bd3b2ce42b776c76755ec65642f43af}{dictionary} $\ast$d, F\+I\+L\+E $\ast$f)
\begin{DoxyCompactList}\small\item\em Dump a dictionary to an opened file pointer. \end{DoxyCompactList}\item 
void \hyperlink{group__ciniparser_gaedeba8efcca011ca841b7d27f892e930}{ciniparser\+\_\+dump\+\_\+ini} (\hyperlink{group__ciniparser_ga5bd3b2ce42b776c76755ec65642f43af}{dictionary} $\ast$d, F\+I\+L\+E $\ast$f)
\begin{DoxyCompactList}\small\item\em Save a dictionary to a loadable ini file. \end{DoxyCompactList}\item 
const char $\ast$ \hyperlink{group__ciniparser_gaeb8a3530ebcbacf04b16a06c2353699a}{ciniparser\+\_\+getstring} (\hyperlink{group__ciniparser_ga5bd3b2ce42b776c76755ec65642f43af}{dictionary} $\ast$d, const char $\ast$key, char $\ast$def)
\begin{DoxyCompactList}\small\item\em Get the string associated to a key. \end{DoxyCompactList}\item 
int \hyperlink{group__ciniparser_ga494c830a31e50ba9daa03c5b3b596d1d}{ciniparser\+\_\+getint} (\hyperlink{group__ciniparser_ga5bd3b2ce42b776c76755ec65642f43af}{dictionary} $\ast$d, const char $\ast$key, int notfound)
\begin{DoxyCompactList}\small\item\em Get the string associated to a key, convert to an int. \end{DoxyCompactList}\item 
double \hyperlink{group__ciniparser_gab47e041735c05feab41bb03b2c2b09f7}{ciniparser\+\_\+getdouble} (\hyperlink{group__ciniparser_ga5bd3b2ce42b776c76755ec65642f43af}{dictionary} $\ast$d, const char $\ast$key, double notfound)
\begin{DoxyCompactList}\small\item\em Get the string associated to a key, convert to a double. \end{DoxyCompactList}\item 
int \hyperlink{group__ciniparser_ga21a20d1db5df6cb8854829a9649d57eb}{ciniparser\+\_\+getboolean} (\hyperlink{group__ciniparser_ga5bd3b2ce42b776c76755ec65642f43af}{dictionary} $\ast$d, const char $\ast$key, int notfound)
\begin{DoxyCompactList}\small\item\em Get the string associated to a key, convert to a boolean. \end{DoxyCompactList}\item 
int \hyperlink{group__ciniparser_gafeceb3aa96858ad6d94367e834a84d19}{ciniparser\+\_\+find\+\_\+entry} (\hyperlink{group__ciniparser_ga5bd3b2ce42b776c76755ec65642f43af}{dictionary} $\ast$ini, const char $\ast$entry)
\begin{DoxyCompactList}\small\item\em Finds out if a given entry exists in a dictionary. \end{DoxyCompactList}\item 
int \hyperlink{group__ciniparser_ga169dabf5b0a86dc1f4bd01ba6d7e23ce}{ciniparser\+\_\+set} (\hyperlink{group__ciniparser_ga5bd3b2ce42b776c76755ec65642f43af}{dictionary} $\ast$d, const char $\ast$entry, const char $\ast$val)
\begin{DoxyCompactList}\small\item\em Set an item in the dictionary. \end{DoxyCompactList}\item 
void \hyperlink{group__ciniparser_gad0046980ed3cbf9da80b4f47655d27d9}{ciniparser\+\_\+unset} (\hyperlink{group__ciniparser_ga5bd3b2ce42b776c76755ec65642f43af}{dictionary} $\ast$ini, char $\ast$entry)
\begin{DoxyCompactList}\small\item\em Delete an entry in a dictionary. \end{DoxyCompactList}\item 
\hyperlink{group__ciniparser_ga5bd3b2ce42b776c76755ec65642f43af}{dictionary} $\ast$ \hyperlink{group__ciniparser_ga1e877c8cb81d953914b7f10030d84ccd}{ciniparser\+\_\+load} (const char $\ast$ininame)
\begin{DoxyCompactList}\small\item\em Parse an ini file and return an allocated dictionary object. \end{DoxyCompactList}\item 
void \hyperlink{group__ciniparser_gaddec45454d13abb8fc4a8da8dd4cc338}{ciniparser\+\_\+freedict} (\hyperlink{group__ciniparser_ga5bd3b2ce42b776c76755ec65642f43af}{dictionary} $\ast$d)
\begin{DoxyCompactList}\small\item\em Free all memory associated to an ini dictionary. \end{DoxyCompactList}\end{DoxyCompactItemize}


\subsection{Detailed Description}
Parser for ini files. 

\begin{DoxyAuthor}{Author}
N. Devillard 
\end{DoxyAuthor}
\begin{DoxyDate}{Date}
Sep 2007 
\end{DoxyDate}
\begin{DoxyVersion}{Version}
3.\+0 
\end{DoxyVersion}
