mirror of https://github.com/E-Almqvist/eOS
parent
1c76279e1e
commit
828b7c1321
@ -1,2 +1,8 @@ |
|||||||
// Generic String Library
|
// Generic String Library
|
||||||
#define INDEX(s, c) (int)(c-s) |
#define INDEX(s, c) (int)(c-s) |
||||||
|
|
||||||
|
unsigned int length(char* str) { |
||||||
|
char* p; |
||||||
|
for( p = str; *p != '\0'; p++ ) {} |
||||||
|
return (unsigned int)(p-str); |
||||||
|
} |
||||||
|
Loading…
Reference in new issue