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