Hello,

at your comparison is a bracket at the wrong place:
if(str_cmp("text1.txt", "text2.txt")) == 1

should be:
if(str_cmp("text1.txt", "text2.txt") == 1) {...

or:
if(str_cmp("text1.txt", "text2.txt")) {...