the error is if (!strcmp(argv[1], "->f")
it's missing a final parenthesis, should be
if (!strcmp(argv[1], "->f"))
and you made the same mistake twice. 1 paren for strcmp(), 1 for if()
you should include string.h. Also, you should put you functions f2c and c2f before main.
also you wrote
prinf
try with a t before the f
printf
finally you need
exit(0);
after the first if. eg
if (argc!=3)
{
printf("Incorrect number of arguments");
exit(0);
}
otherwise the rest of the program runs and you get seg fault. Welcome to programming.