blob: 89f77a0e752ed1baa712b31b767b7cbd7284310c (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
#include <kernel/lib/string.h>
char strcmp(const char *a, const char *b)
{
if (strlen(a) != strlen(b))
return 1;
for (size_t i = 0; i < strlen(a); i++)
if (a[i] != b[i])
return 1;
return 0;
}
|