Re: [cc65] C64: CKOUT followed by printf

From: Groepaz <groepaz1gmx.net>
Date: 2010-12-03 13:14:24
On Freitag 03 Dezember 2010, you wrote:
> Hm, isn't printf() supposed to write to the 'standard output' ? And
> isn't the enviroment the program runs in free to decide where that
> standard output should actually go (i.e. a shell redirecting the
> standard output to some file/device) ?
> 
> Again, I'm no C64 guy so I don't actually know, but... in case
> cbm_k_ckout() could be considered the C64 way to decide where the
> standard output goes then I *WOULD* expect printf() to write to that
> location.

no, ckout is just a convenience function to set up the *current* device. so if 
you write to disk and screen at the "same" time, then ckout would be used to 
switch between the two.

-- 

http://www.hitmen-console.org    http://magicdisk.untergrund.net
http://www.pokefinder.org        http://ftp.pokefinder.org

Aus Fehlern wird man klug. Darum ist einer nicht genug.

----------------------------------------------------------------------
To unsubscribe from the list send mail to majordomo@musoftware.de with
the string "unsubscribe cc65" in the body(!) of the mail.
Received on Fri Dec 3 13:14:35 2010

This archive was generated by hypermail 2.1.8 : 2010-12-03 13:14:38 CET