diff options
Diffstat (limited to 'key_value_storage.c')
-rw-r--r-- | key_value_storage.c | 4 |
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_; } |