diff options
Diffstat (limited to 'common')
-rw-r--r-- | common/textfile.c | 5 | ||||
-rw-r--r-- | common/textfile.h | 1 |
2 files changed, 6 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); diff --git a/common/textfile.h b/common/textfile.h index d89720d7..b1a31100 100644 --- a/common/textfile.h +++ b/common/textfile.h @@ -31,6 +31,7 @@ int create_name(char *buf, size_t size, const char *path, int textfile_put(const char *pathname, const char *key, const char *value); int textfile_del(const char *pathname, const char *key); +int textfile_casedel(const char *pathname, const char *key); char *textfile_get(const char *pathname, const char *key); char *textfile_caseget(const char *pathname, const char *key); |