Now, the first element of values243[] is correctly initialized with 3 before the function call, so that the function should be executed 3 times, until the counter hits zero and the function prints zero to the file (the file is going to be used for a rectangle pulse curve).
Can someone tell me what I'm doing wrong? Because I (as ever so often) can't seem to find it.
And interestingly, the if-statement never gets executed (I traced it), yet the pointer experiences change (although I'm not doing anything to change it, outside of the if statement).