[cc65] fwrite disk full detection

From: Johan Kotlinski <kotlinski1gmail.com>
Date: 2012-04-22 00:52:51
Hi there!
I am trying to do some disk I/O using cc65 stdio operations. Target is
C64 + 1541.
I was a bit surprised now that fwrite does not detect disk full. I.e.,

FILE* f = fopen("test", "w");
while(1 == fwrite(0xc000, 100, 1, f));

...will create an infinite loop. Is that a bug, or supposed to work
like that due to hardware limitations?

To unsubscribe from the list send mail to majordomo@musoftware.de with
the string "unsubscribe cc65" in the body(!) of the mail.
Received on Sun Apr 22 00:53:24 2012

This archive was generated by hypermail 2.1.8 : 2012-04-22 00:53:28 CEST