aboutsummaryrefslogtreecommitdiff
path: root/string.c
diff options
context:
space:
mode:
authorDavid <dbphillipsnz@gmail.com>2013-08-13 20:31:28 +1200
committerDavid <dbphillipsnz@gmail.com>2013-08-13 20:31:28 +1200
commitbc6b1dde4d5a9fd2779c6328b43553488f46fa45 (patch)
tree1232ec59e38ca92372c65143c1e8c0a945c5d324 /string.c
downloadtoast-bc6b1dde4d5a9fd2779c6328b43553488f46fa45.tar.xz
Initial Commit
Diffstat (limited to 'string.c')
-rw-r--r--string.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/string.c b/string.c
new file mode 100644
index 0000000..14bee28
--- /dev/null
+++ b/string.c
@@ -0,0 +1,14 @@
+#ifndef STRING_C
+#define STRING_C
+
+#include <toast.h>
+
+uint64_t strlen(char *string)
+{
+ uint64_t l = 0;
+ while (string[l] != 0)
+ l++;
+ return l;
+}
+
+#endif