Re: [cc65] A bug?

From: <silverdr1inet.com.pl>
Date: 2008-07-22 00:05:57
On 2008-07-21, at 20:40, Ullrich von Bassewitz wrote:

>> [...]
>> differently and "properly" - meaning - \n generates newline while \r
>> only returns the cursor to column zero - the way I would expect it  
>> to.
>
> What are you talking about, conio or printf/write?

The latter.

> printf/write is another case. It is implemented through low level  
> POSIX
> functions read() and write(), which are also used for file i/o.  
> printf ist
> just a shortcut for fprintf(stdout, ...) which actually does file i/ 
> o. For
> these routines \r and \n are platform dependent. According to the C  
> standard,
> \n translates to whatever is used as a "newline" on the specific  
> platform.

\n works fine. It is \r that doesn't (at least on the C64 platform).  
OK - we discussed this in this very thread some time ago - the comment  
was that it doesn't necessarily _have to_. Still - it really wouldn't  
hurt if it did. Quite the opposite IMHO.

Regards,

P.

----------------------------------------------------------------------
To unsubscribe from the list send mail to majordomo@musoftware.de with
the string "unsubscribe cc65" in the body(!) of the mail.
Received on Tue Jul 22 00:06:04 2008

This archive was generated by hypermail 2.1.8 : 2008-07-22 00:06:06 CEST