putchar + printf combined
J. Johnston
jjohnstn@redhat.com
Fri Sep 6 16:02:00 GMT 2002
Banit Agrawal wrote:
>
> Hello,
>
> I am getting some problems with printf + putchar combination
> present in the same program. Is the same buffer(stdio) is used
> properly in both the cases?
>
> If we do not give any printf statement in the program containing
> getchar() and putchar() function, it works fine.
>
> Independently both calls works fine.
>
> Any pointers in this direction will be helpful.
>
> Thanks & Regards,
> Banit Agrawal
Banit,
The two functions should interoperate without problem. Can you isolate a testcase
exhibiting the behavior? It may be possible that memory corruption is occurring.
-- Jeff J.
More information about the Newlib
mailing list