first function of stl
This commit is contained in:
8
stl/string.h
Normal file
8
stl/string.h
Normal file
@@ -0,0 +1,8 @@
|
||||
// our own stuff for stl utilities
|
||||
|
||||
unsigned strlen(const char* str) {
|
||||
unsigned idx = 0;
|
||||
while(str[idx])
|
||||
idx++;
|
||||
return idx;
|
||||
}
|
||||
Reference in New Issue
Block a user