diff options
Diffstat (limited to 'strlen.cc')
-rw-r--r-- | strlen.cc | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/strlen.cc b/strlen.cc new file mode 100644 index 0000000..ef81b91 --- /dev/null +++ b/strlen.cc @@ -0,0 +1,8 @@ +# include <luma/main.hh> +int luma::strlen(char const * str) { + int len = 0x0; + while(str[len] != '\0') { + ++len; + } + return len; +} |