[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [MiNT] stdio write problem in mintlib
On Sun, Dec 30, 2007 at 10:30:05AM +0100, Andreas Schwab wrote:
> Alan Hourihane <alanh@fairlite.demon.co.uk> writes:
>
> > But when outputting via no tty like this...
> >
> > export TEST=`./main`
> >
> > You get
> >
> > "EST="a
> >
> > Notice that the linefeed has continued on and inserted into the
> > environment variable which is incorrect.
>
> Not the LF '\n', but the CR '\r'. This is the correct operation.
Oh,
and forgot to mention that this...
main()
{
printf("a\n");
}
and then doing
export MACH=`./main`
evaluates correctly to
MACH="a"
so, should there be a difference in putchar and printf ?? I didn't think
so.
Alan.