reset to size_t
This commit is contained in:
parent
c66ebe98a7
commit
e453de93ac
|
@ -16,7 +16,7 @@ extern "C" {
|
|||
// memcpy, memset, strcpy, strlen, itoa, atoi, ...
|
||||
// kalloc, kree
|
||||
|
||||
int strlen(const char *s);
|
||||
size_t strlen(const char *s);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
#include <klib.h>
|
||||
|
||||
int strlen(const char *s) {
|
||||
int sz = 0;
|
||||
size_t strlen(const char *s) {
|
||||
size_t sz = 0;
|
||||
for (; *s; s ++) {
|
||||
sz ++;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue