- happy is a function called in abc.
- How can I silence the happy function?
/*------Prints debug statements------*/
void d_printf(char *str)
{
debug_printf("\n -------------------------------------------------");
debug_printf(" \t \n \n %s \t ",str);
debug_printf("\n -------------------------------------------------");
return;
}
int abc(arg1, arg2)
{
d_printf("bleh bleh");
happy (a, b);
printf("Hello world");
}
int happy(arg1, arg2)
{
//do something
//assuming this contains no print statments.
}
I want the happy function to execute quietly and the rest of the things should be printed ? (The happy function should execute quietly in the background, i.e, whatever happens in that function should not be seen on terminal.)