This is the mail archive of the newlib@sources.redhat.com mailing list for the newlib project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: putchar + printf combined


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]