X-Git-Url: https://git.decadent.org.uk/gitweb/?p=nfs-utils.git;a=blobdiff_plain;f=support%2Finclude%2Fconffile.h;h=132a149069e5da08b211a8fd8d7c7cd2171abb67;hp=b2635812aebe62530d0cab2074bc8773be245c8d;hb=8414d150cee62ba0554cfd645956a88dba02a7eb;hpb=a0caba9887474cdc9b9ba8b113a869ff7954ab84 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_ */