1// use: strcmp(string1, string2);
2
3string a = "words";
4string b = "words";
5
6if (strcmp(a, b) == 0)
7{
8 printf("a and b match");
9 // strcmp returns 0 if both strings match
10}
11
12else
13{
14 printf("a and b don't match");
15 // strcmp returns anything else if the strings dont match
16}