Rev 647 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
6433 | siemargl | 1 | #include |
2 | |||
145 | halyavin | 3 | typedef unsigned char uc; |
6433 | siemargl | 4 | int memcmp(const void* buf1,const void* buf2,size_t count) |
145 | halyavin | 5 | { |
6 | int i; |
||
7 | for (i=0;i |
||
8 | { |
||
9 | if (*(uc*)buf1<*(uc*)buf2) |
||
10 | return -1; |
||
6433 | siemargl | 11 | if (*(uc*)buf1>*(uc*)buf2) |
145 | halyavin | 12 | return 1; |
13 | } |
||
14 | return 0; |
||
15 | }*(uc*)buf2) |