]> git.karo-electronics.de Git - oswald.git/blobdiff - ui/oswald_strings.c
Add support for more screens
[oswald.git] / ui / oswald_strings.c
diff --git a/ui/oswald_strings.c b/ui/oswald_strings.c
new file mode 100644 (file)
index 0000000..e04da9b
--- /dev/null
@@ -0,0 +1,16 @@
+#include "oswald.h"
+
+#include "oswald_strings.h"
+
+u16t oswald_strlen(u8t *string)
+{
+       register i=0;
+
+       if (string == NULL)
+               return 0;
+
+       while (string[i] != 0) i++;
+
+       return i;
+}
+