Subversion Repositories Kolibri OS

Rev

Rev 647 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 647 Rev 6433
Line -... Line 1...
-
 
1
#include 
-
 
2
 
1
typedef unsigned char uc;
3
typedef unsigned char uc;
2
int memcmp(const void* buf1,const void* buf2,int count)
4
int memcmp(const void* buf1,const void* buf2,size_t count)
3
{
5
{
4
	int i;
6
	int i;
5
	for (i=0;i
7
	for (i=0;i
6
	{
8
	{
7
		if (*(uc*)buf1<*(uc*)buf2)
9
		if (*(uc*)buf1<*(uc*)buf2)
8
			return -1;
10
			return -1;
9
		if (*(uc*)buf1>*(uc*)buf2)			
11
		if (*(uc*)buf1>*(uc*)buf2)
10
			return 1;
12
			return 1;
11
	}
13
	}
12
	return 0;
14
	return 0;
13
}
15
}