X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=support%2Finclude%2Fconffile.h;h=672020aa750c5e455276623fb7a484c30e01a0fa;hb=3faa54e8a17411de28c7b707207d49b4466ae873;hp=b2635812aebe62530d0cab2074bc8773be245c8d;hpb=9350a97a266ada8d8b3282cf4248e3b9ffdc0058;p=nfs-utils.git diff --git a/support/include/conffile.h b/support/include/conffile.h index b263581..672020a 100644 --- a/support/include/conffile.h +++ b/support/include/conffile.h @@ -34,6 +34,7 @@ #define _CONFFILE_H_ #include +#include struct conf_list_node { TAILQ_ENTRY(conf_list_node) link; @@ -64,4 +65,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_ */