Subversion Repositories Kolibri OS

Rev

Go to most recent revision | Blame | Last modification | View Log | Download | RSS feed

  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<count;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. }
  14.