OpenCores
URL https://opencores.org/ocsvn/or1k/or1k/trunk

Subversion Repositories or1k

[/] [or1k/] [trunk/] [rc203soc/] [sw/] [uClinux/] [arch/] [m68knommu/] [lib/] [memcmp.c] - Blame information for rev 1777

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 1625 jcastillo
#include <linux/types.h>
2
 
3
int memcmp(const void * cs,const void * ct,size_t count)
4
{
5
  const unsigned char *su1, *su2;
6
 
7
  for( su1 = cs, su2 = ct; 0 < count; ++su1, ++su2, count--)
8
    if (*su1 != *su2)
9
      return((*su1 < *su2) ? -1 : +1);
10
  return(0);
11
}

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.