Everytime I try to compile my program, I get the Char to Char* compile error... I am doing this in C. This is my code:
int my_strcmp(char s1[], char s2[]) {
int i;
for (i=0; i != '\0'; i++)
if (my_strcmp(s1[i], s2[i]) == 1)
return 1;
else if (my_strcmp(s1[i], s2[i]) == -1)
return -1;
else
return 0;