Re: [cc65] File I/O on C64

Date view Thread view Subject view

From: Ullrich von Bassewitz (uz_at_musoftware.de)
Date: 2002-11-18 00:29:32


On Sat, Nov 16, 2002 at 12:00:05PM -0600, Brian Bagnall wrote:
> On a related topic, the cprintf special character \n should have standard
> ANSI functionality. I like the idea of having newline and carriage return,
> but I found this confusing as a newbie. When newbies like me are following
> 'hello world' examples out of books (like the excellent "C Programming
> Language" by Kernighan and Ritchie) it can produce unexpected and messy
> results with the authors sample code.

If you're using printf(), '\n' works as expected. Regarding your other
suggestions: There is already a common interpretation what \r and \n do, and
the big brother of conio (the conio from the old Borland DOS compilers),
handles it identical as cc65. Changing it would confuse people who are used to
the original conio.

Regards


        Uz


-- 
Ullrich von Bassewitz                                  uz_at_musoftware.de
----------------------------------------------------------------------
To unsubscribe from the list send mail to majordomo_at_musoftware.de with
the string "unsubscribe cc65" in the body(!) of the mail.


Date view Thread view Subject view

This archive was generated by hypermail 2.1.3 : 2002-11-18 00:29:37 CET