X-Git-Url: https://git.decadent.org.uk/gitweb/?p=nfs-utils.git;a=blobdiff_plain;f=support%2Finclude%2Fconffile.h;h=ce7aa218a56527d9bcc1d77f275bab6a10c4e2fc;hp=b2635812aebe62530d0cab2074bc8773be245c8d;hb=fe34ff0312c7c22554087ecd78bbbeadb38ce195;hpb=9350a97a266ada8d8b3282cf4248e3b9ffdc0058 diff --git a/support/include/conffile.h b/support/include/conffile.h index b263581..ce7aa21 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,16 @@ 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_ */