Separated functionality into separate files. Added initial (untested) support for ARM.
This commit is contained in:
12
lib/string.c
Normal file
12
lib/string.c
Normal file
@ -0,0 +1,12 @@
|
||||
#include <stddef.h>
|
||||
|
||||
#include <brados/string.h>
|
||||
|
||||
// Find the length of a string
|
||||
size_t strlen(const char *str)
|
||||
{
|
||||
size_t len = 0;
|
||||
while (str[len] != 0)
|
||||
len++;
|
||||
return len;
|
||||
}
|
Reference in New Issue
Block a user