#include <string.h> ... if (strcmp(firstSTR, secondSTR) == 0) { // strings are equal ... } else { // strings are NOT equal }