aboutsummaryrefslogtreecommitdiff
path: root/fbwarn/src/extString.c
diff options
context:
space:
mode:
Diffstat (limited to 'fbwarn/src/extString.c')
-rw-r--r--fbwarn/src/extString.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/fbwarn/src/extString.c b/fbwarn/src/extString.c
new file mode 100644
index 0000000..c93cffd
--- /dev/null
+++ b/fbwarn/src/extString.c
@@ -0,0 +1,15 @@
+#include <stdlib.h>
+#include <string.h>
+#include <ctype.h>
+
+char *strlwr(char *str)
+{
+ unsigned char *p = (unsigned char *)str;
+
+ while (*p) {
+ *p = tolower((unsigned char)*p);
+ p++;
+ }
+
+ return str;
+}