Have you forgot to add instructions return?
33 if(*str2 - *str == 0)
34 {
35 return strcmp(str+1,str2+1);
36 }
Otherwise, the code will simply skip the rest of your statement ifand reach the end of your function without returning anything (or 0in your case, but it was lucky).
Your code will only work if the first characters of both lines are different from each other. Or if both lines are empty.
; void non void. , -Wall:)