Is this statement:

if(strcmp(string1, string2))

Equivalent to

if(strcmp(string1, string2) == 0)

My understanding is case 1 is the correct way to execute an if statement if two strings match. In my code however, case 1 produces an error and case 2 gives the behaviour that I want.

This is an SSCE excerpt. My entire codebase is pretty large.