char s1[] = "September 1"; char s2[] = "September 2"; if (strncmp(s1, s2, 11) == 0) printf("Equal "); else printf("Not equal "); }