[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [avr-gcc-list] stdio newline character
From: |
Joerg Wunsch |
Subject: |
Re: [avr-gcc-list] stdio newline character |
Date: |
Mon, 21 Aug 2006 07:06:23 +0200 (MET DST) |
"Larry Barello" <address@hidden> wrote:
> I never noticed this before, but it appears that the stdio facility
> in the latest WinAvr appends a newline character whenever I send a
> return.
No, stdio doesn't do any massaging of your output characters itself.
The suggested example code (for the low-level output function) inserts
a \r before any \n (in the Unix tradition), so strings internally need
only be written as "...\n", but that's a suggestion only -- and
doesn't even appear to be your problem.
> I even tried writing my own puts_P() using putchar(), and THAT
> appended the bloody 0x0A...
And you never suspected your terminal program on the other end doing
it then?
--
cheers, J"org .-.-. --... ...-- -.. . DL8DTL
http://www.sax.de/~joerg/ NIC: JW11-RIPE
Never trust an operating system you don't have sources for. ;-)