String Functions strcmp Comparing two strings Call: bool result = strcmp(string s1, string s2); Here: string1 and string2 - string variables to compare The function returns 1 if the strings match exactly.