From d9aa4a2058eace37d5c2d15508b4c4d9962c2bb5 Mon Sep 17 00:00:00 2001 From: Johan Hedberg Date: Mon, 26 Feb 2007 20:48:15 +0000 Subject: Add textfile_caseput function --- common/textfile.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'common/textfile.c') diff --git a/common/textfile.c b/common/textfile.c index 895e3f3d..ea7e80bb 100644 --- a/common/textfile.c +++ b/common/textfile.c @@ -320,6 +320,11 @@ int textfile_put(const char *pathname, const char *key, const char *value) return write_key(pathname, key, value, 0); } +int textfile_caseput(const char *pathname, const char *key, const char *value) +{ + return write_key(pathname, key, value, 1); +} + int textfile_del(const char *pathname, const char *key) { return write_key(pathname, key, NULL, 0); -- cgit