bigloo.foreign.bigloo_strncmp C# (CSharp) Method

bigloo_strncmp() public static method

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

            if ((n1 >= l) && (n2 >= l))
            {
               for ( int i= 0 ; i < l ; ++i )
              if (s1[i] != s2[i])
             return false;
               return true;
            }
            else
               return false;
        }
foreign