This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Printf doesn't seem to use my Putchar

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?

Parents
  • 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 ('>');
    

    the two putchar calls send out a character, the printf call sends
    nothing ... any ideas???

    once again, thanks for the comments/help

Reply
  • 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 ('>');
    

    the two putchar calls send out a character, the printf call sends
    nothing ... any ideas???

    once again, thanks for the comments/help

Children