Suppose I need a function to run to a certain point, call another, do some action, call another function, do one more action and finish executing. Whereas the called functions are given a parameter but give no return to the first. Ex:
void comeco_fim(/*função 1*/, /*função 2*/){
printf("começo");
//executa a função 1
printf("texto");
//executa a função 2
printf("fim");
}
In this case, this function would not repeat the same sequence every time I needed it, considering that the order does not change, only some parts change in the middle. How to do this? Or is there a more correct way?