bigloo.foreign.bigloo_strncmp_ci C# (CSharp) Method

bigloo_strncmp_ci() public static method

public static bigloo_strncmp_ci ( byte s1, byte s2, int l ) : bool
s1 byte
s2 byte
l int
return bool
        public static bool bigloo_strncmp_ci( 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 (toupper( s1[i] ) != toupper( s2[i] ))
             return false;
               return true;
            }
            else
               return false;
        }
foreign