Function strncmpi

Top 

Declaration:

int strncmpi(char dest[], char src[], int n, int dest_index=0, int src_index=0);

Description

The strncmpi function compares the first n bytes of lines s1 and s2 letter-by-letter regardless of the character case and returns the comparison result.

Returned value

The strncmpi function returns the following values of the lines s1 and s2

 

    ------------------------------------------

    < 0          s1 is less than s2

    = 0          s1 is equal to s2

    > 0          s1 is greater than s2