summaryrefslogtreecommitdiffstats
path: root/support/include/conffile.h
diff options
context:
space:
mode:
Diffstat (limited to 'support/include/conffile.h')
-rw-r--r--support/include/conffile.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/support/include/conffile.h b/support/include/conffile.h
index b263581..132a149 100644
--- a/support/include/conffile.h
+++ b/support/include/conffile.h
@@ -64,4 +64,14 @@ extern int conf_remove(int, char *, char *);
extern int conf_remove_section(int, char *);
extern void conf_report(void);
+/*
+ * Convert letter from upper case to lower case
+ */
+static inline void upper2lower(char *str)
+{
+ char c;
+
+ while ((c = tolower(*str)))
+ *str++ = c;
+}
#endif /* _CONFFILE_H_ */