I have a function and into it there are a lot of fprintf that print out some informations.I would create a way to show or not show this informations using only one flag.
for example
debug = 0;if debug ~= 0 fprintf(...);end
Since I have too many fprintf in the function I don't want write if every time but I would activate and deactivate fprintf once time for all printf
Best Answer