diff --git a/axl_string.cpp b/axl_string.cpp new file mode 100644 index 0000000..beb62cc --- /dev/null +++ b/axl_string.cpp @@ -0,0 +1,13 @@ +#include "axl_string.h" + +u32 axl_strlen(const i8* s) +{ + u32 len = 0; + + while(s[len] != '\0') + { + len++; + } + + return len; +} diff --git a/axl_string.h b/axl_string.h new file mode 100644 index 0000000..c4c79cf --- /dev/null +++ b/axl_string.h @@ -0,0 +1,8 @@ +#ifndef AXL_STRING_H +#define AXL_STRING_H + +#include "axl_types.h" + +u32 axl_strlen(const i8* s); + +#endif // AXL_STRING