diff options
| author | Michal Idziorek <m.i@gmx.at> | 2014-12-04 00:21:20 +0100 |
|---|---|---|
| committer | Michal Idziorek <m.i@gmx.at> | 2014-12-04 00:21:20 +0100 |
| commit | 427613498108fda93f7cbfcb3a9417da50a23958 (patch) | |
| tree | e6bbe4f4cf597b2d96d9adf99e254fe263ddd5df /lib/string | |
| parent | b5d9da88991592d35d39dcae3829d2498b4e47e4 (diff) | |
finally hacked env and argv!
Diffstat (limited to 'lib/string')
| -rw-r--r-- | lib/string/string.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/string/string.c b/lib/string/string.c index a43210a..729c509 100644 --- a/lib/string/string.c +++ b/lib/string/string.c @@ -27,3 +27,11 @@ void* memcpy(void* restrict dstptr, const void* restrict srcptr, int size) dst[i] = src[i]; return dstptr; } + +int strlen(const char* string) +{ + int result = 0; + while ( string[result] ) + result++; + return result; +} |
