[BACK]Return to memcmp.c CVS log [TXT][DIR] Up to [Development] / linux-2.4-xfs / arch / m68k / lib

File: [Development] / linux-2.4-xfs / arch / m68k / lib / memcmp.c (download)

Revision 1.1, Wed Dec 31 00:54:49 2003 UTC (13 years, 10 months ago) by cattelan
Branch: MAIN
CVS Tags: HEAD

Initial Import 2.4.24pre2

#include <linux/types.h>

int memcmp(const void * cs,const void * ct,size_t count)
{
  const unsigned char *su1, *su2;

  for( su1 = cs, su2 = ct; 0 < count; ++su1, ++su2, count--)
    if (*su1 != *su2)
      return((*su1 < *su2) ? -1 : +1);
  return(0);
}