bigloo.foreign.bigloo_strcmp C# (CSharp) Method

bigloo_strcmp() public static method

public static bigloo_strcmp ( byte s1, byte s2 ) : bool
s1 byte
s2 byte
return bool
        public static bool bigloo_strcmp( byte[] s1, byte[] s2 )
        {
            int n1= s1.Length;
            int n2= s2.Length;

            if (n1 != n2)
               return false;

            for ( int i= 0 ; i < n1 ; ++i )
               if (s1[i] != s2[i])
              return false ;

            return true;
        }
foreign