Details |
Last modification |
View Log
| RSS feed
Rev |
Author |
Line No. |
Line |
145 |
halyavin |
1 |
typedef unsigned char uc; |
|
|
2 |
int memcmp(const void* buf1,const void* buf2,int count) |
|
|
3 |
{ |
|
|
4 |
int i; |
|
|
5 |
for (i=0;i |
|
|
6 |
{ |
|
|
7 |
if (*(uc*)buf1<*(uc*)buf2) |
|
|
8 |
return -1; |
|
|
9 |
if (*(uc*)buf1>*(uc*)buf2) |
|
|
10 |
return 1; |
|
|
11 |
} |
|
|
12 |
return 0; |
|
|
13 |
}*(uc*)buf2) |