Separated functionality into separate files. Added initial (untested) support for ARM.

This commit is contained in:
2013-12-06 13:47:22 -05:00
parent e97e0b0cf5
commit da4cc8b645
10 changed files with 308 additions and 136 deletions

12
lib/string.c Normal file
View 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;
}