File: bcmp.c

package info (click to toggle)
gcl27 2.7.1-13
  • links: PTS
  • area: main
  • in suites: sid
  • size: 30,888 kB
  • sloc: lisp: 211,946; ansic: 52,944; sh: 9,347; makefile: 647; tcl: 53; awk: 52
file content (11 lines) | stat: -rwxr-xr-x 181 bytes parent folder | download | duplicates (18)
1
2
3
4
5
6
7
8
9
10
11
#include <stdlib.h>
int bcmp(const void *s1, const void *s2, size_t n)
{  const char *c1=s1,*c2=s2;
   while (n-- > 0)
	{if (*c1++ != *c2++)
	 return 1;}
      return 0;
    }