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


Implements a dictionary for string variables.  


{\ttfamily \#include \char`\"{}dictionary.\+h\char`\"{}}\newline
{\ttfamily \#include $<$stdio.\+h$>$}\newline
{\ttfamily \#include $<$stdlib.\+h$>$}\newline
{\ttfamily \#include $<$string.\+h$>$}\newline
{\ttfamily \#include $<$unistd.\+h$>$}\newline
\subsection*{Macros}
\begin{DoxyCompactItemize}
\item 
\#define \hyperlink{group__ciniparser_ga071228a4e1c69ac2eec59e9c1385185a}{M\+A\+X\+V\+A\+L\+SZ}~1024
\item 
\#define \hyperlink{group__ciniparser_gaaf4ab97b3163920286cb932a3faedf86}{D\+I\+C\+T\+M\+I\+N\+SZ}~128
\item 
\#define \hyperlink{group__ciniparser_ga220dbd9af990c8faebfd01bd62b2dde4}{D\+I\+C\+T\+\_\+\+I\+N\+V\+A\+L\+I\+D\+\_\+\+K\+EY}~((char$\ast$)-\/1)
\end{DoxyCompactItemize}
\subsection*{Functions}
\begin{DoxyCompactItemize}
\item 
unsigned \hyperlink{group__ciniparser_ga7c1ef0a729e668d1e8d6a7e774feaf2e}{dictionary\+\_\+hash} (const char $\ast$key)
\begin{DoxyCompactList}\small\item\em Compute the hash key for a string. \end{DoxyCompactList}\item 
\hyperlink{group__ciniparser_ga5bd3b2ce42b776c76755ec65642f43af}{dictionary} $\ast$ \hyperlink{group__ciniparser_ga876a908eb786f957f939a08a362e514d}{dictionary\+\_\+new} (int size)
\begin{DoxyCompactList}\small\item\em Create a new dictionary object. \end{DoxyCompactList}\item 
void \hyperlink{group__ciniparser_ga9d792f2544cf674a371663e2f32128fa}{dictionary\+\_\+del} (\hyperlink{group__ciniparser_ga5bd3b2ce42b776c76755ec65642f43af}{dictionary} $\ast$vd)
\begin{DoxyCompactList}\small\item\em Delete a dictionary object. \end{DoxyCompactList}\item 
const char $\ast$ \hyperlink{group__ciniparser_ga9b891a858ce598f8c87e3312d47bb2fc}{dictionary\+\_\+get} (\hyperlink{group__ciniparser_ga5bd3b2ce42b776c76755ec65642f43af}{dictionary} $\ast$d, const char $\ast$key, const char $\ast$def)
\begin{DoxyCompactList}\small\item\em Get a value from a dictionary. \end{DoxyCompactList}\item 
int \hyperlink{group__ciniparser_gaab65a95ad09062716b24a129d8529b76}{dictionary\+\_\+set} (\hyperlink{group__ciniparser_ga5bd3b2ce42b776c76755ec65642f43af}{dictionary} $\ast$vd, const char $\ast$key, const char $\ast$val)
\begin{DoxyCompactList}\small\item\em Set a value in a dictionary. \end{DoxyCompactList}\item 
void \hyperlink{group__ciniparser_ga27f0752948d52ccd2568dae22f5db2bc}{dictionary\+\_\+unset} (\hyperlink{group__ciniparser_ga5bd3b2ce42b776c76755ec65642f43af}{dictionary} $\ast$d, const char $\ast$key)
\begin{DoxyCompactList}\small\item\em Delete a key in a dictionary. \end{DoxyCompactList}\item 
void \hyperlink{group__ciniparser_ga6e29ecf9c79331b1c6c26cd662cba042}{dictionary\+\_\+dump} (\hyperlink{group__ciniparser_ga5bd3b2ce42b776c76755ec65642f43af}{dictionary} $\ast$d, F\+I\+LE $\ast$out)
\begin{DoxyCompactList}\small\item\em Dump a dictionary to an opened file pointer. \end{DoxyCompactList}\end{DoxyCompactItemize}


\subsection{Detailed Description}
Implements a dictionary for string variables. 

\begin{DoxyAuthor}{Author}
N. Devillard 
\end{DoxyAuthor}
\begin{DoxyDate}{Date}
Sep 2007 
\end{DoxyDate}
\begin{DoxyVersion}{Version}
Revision\+: 1.\+27 This module implements a simple dictionary object, i.\+e. a list of string/string associations. This object is useful to store e.\+g. information retrieved from a configuration file (ini files). 
\end{DoxyVersion}
