Skip to content

Commit c165af3

Browse files
authored
Merge pull request #5 from visitorckw/fix-strlen-build-error
Fix prototype mismatch of strlen() in libc.h
2 parents 5e891e1 + 38adf3d commit c165af3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/lib/libc.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ char *strncat(char *s1, const char *s2, int32_t n);
7070
int32_t strcmp(const char *s1, const char *s2);
7171
int32_t strncmp(const char *s1, const char *s2, int32_t n);
7272
char *strstr(const char *s1, const char *s2);
73-
int32_t strlen(const char *s1);
73+
size_t strlen(const char *s1);
7474
char *strchr(const char *s1, int32_t c);
7575
char *strpbrk(const char *s1, const char *s2);
7676
char *strsep(char **pp, const char *delim);

0 commit comments

Comments
 (0)