aboutsummaryrefslogtreecommitdiff
path: root/src/userspace/libc/string/strcmp.c
blob: 42825207127ce5c22272d962800e8db89499ed8f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#include <stdint.h>
#include <string.h>

char strcmp(char *a, char *b)
{
	if (strlen(a) != strlen(b))
		return 1;

	for (u8 i = 0; i < strlen(a); i++)
		if (a[i] != b[i])
			return 1;

	return 0;
}