*
* This module implements a simple dictionary object, i.e. a list
* of string/string associations. This object is useful to store e.g.
- * informations retrieved from a configuration file (ini files).
+ * information retrieved from a configuration file (ini files).
*/
#include "dictionary.h"
/* The remaining exposed functions are documented in dictionary.h */
-unsigned dictionary_hash(char *key)
+unsigned dictionary_hash(const char *key)
{
int len;
unsigned hash;
return;
}
-char *dictionary_get(dictionary *d, char *key, char *def)
+char *dictionary_get(dictionary *d, const char *key, char *def)
{
unsigned hash;
int i;
return def;
}
-int dictionary_set(dictionary *d, char *key, char *val)
+int dictionary_set(dictionary *d, const char *key, char *val)
{
int i;
unsigned hash;
return 0;
}
-void dictionary_unset(dictionary *d, char *key)
+void dictionary_unset(dictionary *d, const char *key)
{
unsigned hash;
int i;