Re-organisation + stdint.h and stddef.h

This commit is contained in:
Max Wash
2020-03-31 12:04:53 +01:00
parent 5d12a5ecf2
commit 4cc8e52052
9 changed files with 391 additions and 11 deletions

View File

@@ -0,0 +1,11 @@
#include <string.h>
size_t strlen(const char *str)
{
const char *start = str;
while (*str) {
str++;
}
return str - start;
}