Re: [cc65] A bug?

From: Ullrich von Bassewitz <uz1musoftware.de>
Date: 2008-07-22 11:21:03
On Tue, Jul 22, 2008 at 12:05:57AM +0200, silverdr@inet.com.pl wrote:
> \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.

Again: printf calls fprintf (a FILE I/O function), which in turn calls write
(a low level FILE I/O function), which uses the the FILE I/O function supplied
by the kernal (BSOUT). You can even use some BASIC commands to redirect printf
output to a file or a printer. Special handling for \r would mess up handling
of file data in other places, so I see no way to do it. And also no reason: If
you need a special handling of \r vs. \n, you can always use conio.

Regards


        Uz


-- 
Ullrich von Bassewitz                                  uz@musoftware.de
----------------------------------------------------------------------
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 11:21:13 2008

This archive was generated by hypermail 2.1.8 : 2008-07-22 11:21:15 CEST