Suppose I have a function name my_print(int flag_1, /* what goes here? */)
.
Its objective is the same as printf(), but it should only print when flag_1 is "true".
How would I write the function's header and body?
Note: I know I can just write if (flag_1) printf(/*something*/);
, but how would I put that into a function?