summaryrefslogtreecommitdiff
path: root/key_value_storage.c
diff options
context:
space:
mode:
authorChristian Pointner <equinox@helsinki.at>2009-11-04 04:19:53 (GMT)
committerChristian Pointner <equinox@helsinki.at>2009-11-04 04:19:53 (GMT)
commit14e460a9bcaadaa2dd206a5c701814cd5e1d4648 (patch)
tree7e69c25c510765b143a02985d505e5f011ba5a68 /key_value_storage.c
parent300483ff8651af328adeb83834dac0dc3442407d (diff)
improved key value storage print
Diffstat (limited to 'key_value_storage.c')
-rw-r--r--key_value_storage.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/key_value_storage.c b/key_value_storage.c
index 8ed21dd..7f4b584 100644
--- a/key_value_storage.c
+++ b/key_value_storage.c
@@ -76,7 +76,7 @@ char* key_value_storage_find(key_value_storage_t* stor, const char* key)
return NULL;
}
-void key_value_storage_print(key_value_storage_t* stor)
+void key_value_storage_print(key_value_storage_t* stor, const char* head, const char* sep, const char* tail)
{
if(!stor)
return;
@@ -84,7 +84,7 @@ void key_value_storage_print(key_value_storage_t* stor)
string_list_element_t* k = stor->keys_.first_;
string_list_element_t* v = stor->values_.first_;
while(v && k) {
- printf("'%s' -> '%s'\n", k->string_, v->string_);
+ printf("%s%s%s%s%s", head, k->string_, sep, v->string_, tail);
k = k->next_;
v = v->next_;
}