7
Let’s assume that I need one function to perform to a certain point, call another, do some action, call another function, do one more action and finish executing. Whereas the called functions receive 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 serve to not repeat the same sequence every time I needed it, considering that the order does not change, only change some parts in the middle. How to do this? Or is there any more correct way?
Perfect. Wanting more details: C Pointer to functions
– RSinohara
Exactly that. Thank you.
– Carlos