I had a previous question regarding this topic but I have come up with this error and I don't seem to notice anything wrong with it. I think it might lie withing the assignment of args to the strings.
edit:
void replace(char* string_a, char* string_b, char* string_f)
{
}
int main(int argc, char *argv[])
{
if(argc < 4)
{
printf("Not enough arguments\n");
return 0;
}
replace(argv[1],argv[2],argv[3]);
}
It is odd that the main function must be after the replace function or the compiler complains. I have to look up why.