File: m2l_eq.c

package info (click to toggle)
m2c 0.6-10.2
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k, lenny
  • size: 2,156 kB
  • ctags: 1,908
  • sloc: ansic: 18,135; sh: 1,590; makefile: 48
file content (16 lines) | stat: -rw-r--r-- 359 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
/* Run-time function for Modula-2 comparing long memory values on equality.
   Copyright (C) 1993-1997 (see more details in file COPYING).

   This file is part of Modula-2 translator.  */


int
m2_eq (str1, str2, l)
     register char *str1, *str2;
     register unsigned int l;
{
  while (l-- != 0)
    if (*str1++ != *str2++)
      return 0;
  return 1;
}