hello. I was just wondering where do i put a printf statement if I’m using kevin watson’s code? thanks!
You can put a printout anywhere inside a function after variable declarations. Just make sure each file that uses printf has a #include <stdio.h> so the function is defined.
indeed, what psy_wombats said is correct,
you can place PRINTFs everywhere,
just be careful:
-
1. not to forget the #include<stdio.h> on top of every page that has a printf
-
2. try not to put it in vital areas, you don't wanna mess with functions that are time-sensitive, printf is a rather complicated function, that bites up a lot of mS