steven114
15-02-2005, 20:51
I'm having a few issues with calling printf - it sometimes leaves the format string (like %d) in the output. Something like this:
joyx = 127
joyx = 127
joyx = 127
joyx = %d
joyx = 127
etc...
It seems to be random.
Also, it doesn't seem to like to have information pushed at it multiple times through the main loop. Even though I push a \r\n at it (although the same thing happens with either \r or \n) it overwrites the last bit of output. Is there a buffer or something that can hold a limited amount of data? I never experienced any problems like this last year - did something change? I'm sorry if this seems like a trivial problem - but it's driving me absolutely insane.
joyx = 127
joyx = 127
joyx = 127
joyx = %d
joyx = 127
etc...
It seems to be random.
Also, it doesn't seem to like to have information pushed at it multiple times through the main loop. Even though I push a \r\n at it (although the same thing happens with either \r or \n) it overwrites the last bit of output. Is there a buffer or something that can hold a limited amount of data? I never experienced any problems like this last year - did something change? I'm sorry if this seems like a trivial problem - but it's driving me absolutely insane.