- #include <stdio.h>
- #include <string.h>
- void main(void)
- {
- printf("Comparing Abc with Abc %dn",
- stricmp("Abc", "Abc"));
- printf("Comparing abc with Abc %dn",
- stricmp("abc", "Abc"));
- printf("Comparing 3 letters abcd with ABC %dn",
- strncmpi("abcd", "ABC", 3));
- printf("Comparing 5 letters abc with Abcd %dn",
- strncmpi("abc", "Abcd", 5));
- }