11 lines
292 B
C
11 lines
292 B
C
|
#include <stdio.h>
|
||
|
#include <string.h>
|
||
|
|
||
|
void main()
|
||
|
{
|
||
|
printf( "%d\n", strnicmp( "abcdef", "ABCXXX", 10 ) );
|
||
|
printf( "%d\n", strnicmp( "abcdef", "ABCXXX", 6 ) );
|
||
|
printf( "%d\n", strnicmp( "abcdef", "ABCXXX", 3 ) );
|
||
|
printf( "%d\n", strnicmp( "abcdef", "ABCXXX", 0 ) );
|
||
|
}
|