#include <stdint.h>
#include <inttypes.h>
#include <string.h>
+#include <ctype.h>
#include <errno.h>
#include <sys/types.h>
#include <sys/stat.h>
return (status);
} /* }}} int print_debug */
+char *strtolower (char *str) /* {{{ */
+{
+ unsigned int i;
+
+ if (str == NULL)
+ return (NULL);
+
+ for (i = 0; str[i] != 0; i++)
+ str[i] = (char) tolower ((int) str[i]);
+
+ return (str);
+} /* }}} char *strtolower */
+
+char *strtolower_copy (const char *str)
+{
+ if (str == NULL)
+ return (NULL);
+
+ return (strdup (str));
+}
+
/* vim: set sw=2 sts=2 et fdm=marker : */
uint32_t get_random_color (void);
+char *strtolower (char *str);
+char *strtolower_copy (const char *str);
+
#endif /* COMMON_H */
/* vim: set sw=2 sts=2 et fdm=marker : */