17 #include <core/dependencies.h>
18 #include <libc/string.h>
20 #ifdef POK_CONFIG_NEEDS_FUNC_STRCMP
23 int strcmp(const
char *s1, const
char *s2)
28 if (s1[i] ==
'\0' && s2[i] ==
'\0')
40 #ifdef POK_CONFIG_NEEDS_FUNC_STRNCMP
43 int strncmp(const
char *s1, const
char *s2,
size_t size)
46 for (i = 0; i < size; i++)
48 if (s1[i] ==
'\0' && s2[i] ==
'\0')