I added a putchar routine to my main program ... a call to my new putchar works as expected but a call to printf acts like it is still using the old putchar what am I missing here?
I tried the XREF and looked at the linker output .... putchar is NOT on the list of included functions printf does seem ref my _putchar function so it looks like printf should use my putchar function ... this is what made me think it was not using my putchar ... I added this test code to my program
putchar ( '>'); printf ( "AB"); putchar ('>');
does printf "hold" its output til it's got a \n ?
Nope. The printf function does not buffer the output. Jon
If it had a buffer, It would be such a big problem in an Embedded. printf is also non-reentrant ( no buffer )...