blob: b8ac2a7bd16196be327a2cb3bb47ec33b55338c0 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
|
#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;
}
|