[c] getting the error: expected identifier or ‘(’ before ‘{’ token