This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Re: Problem with printf
- From: sandeep <sandeep at codito dot com>
- To: sidharth at clarinox dot com
- Cc: ecos-discuss at sources dot redhat dot com
- Date: Wed, 19 May 2004 14:16:30 +0530
- Subject: Re: [ECOS] Problem with printf
- References: <200405190122.i4J1MVR19524@mail024.syd.optusnet.com.au>
Sidharth,
have a look at the documentation (man pages on any linux installation will be
easy enough) of setbuf, setvbuf family of functions, these are present in eCos
too.you can try
{
setbuf (stdout, NULL);
printf ("Hello World\n");
printf ("Hello fflush");
}
if above also doesn't work, then you need to investigate things deeper down,
tracing the second printf call
I wonder why fflush(stdout) is not doing the job.
--
regards
sandeep
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss