aboutsummaryrefslogtreecommitdiff
path: root/src/string/strcmp.c
blob: 91eb7404fd2bc127c7db8b65038356b1c2ec7873 (plain)
1
2
3
4
5
6
7
#include <string.h>

int strcmp(const char *l, const char *r)
{
	for (; *l==*r && *l && *r; l++, r++);
	return *(unsigned char *)l - *(unsigned char *)r;
}