summaryrefslogtreecommitdiffstats
path: root/common/textfile.c
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2006-11-07 20:34:46 +0000
committerMarcel Holtmann <marcel@holtmann.org>2006-11-07 20:34:46 +0000
commita59e6d0bdc38728c96254f589fa2e64f0542a8a8 (patch)
treefccabb71c72d2a3ae15f8a6dc3c8ab2f3c0daad0 /common/textfile.c
parent7a264576af2e7ccf599b069ee2f93c881ef82679 (diff)
Add textfile_casedel() function
Diffstat (limited to 'common/textfile.c')
-rw-r--r--common/textfile.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/common/textfile.c b/common/textfile.c
index 8c46563c..795c99a3 100644
--- a/common/textfile.c
+++ b/common/textfile.c
@@ -320,6 +320,11 @@ int textfile_del(const char *pathname, const char *key)
return write_key(pathname, key, NULL, 0);
}
+int textfile_casedel(const char *pathname, const char *key)
+{
+ return write_key(pathname, key, NULL, 1);
+}
+
char *textfile_get(const char *pathname, const char *key)
{
return read_key(pathname, key, 0);