From: "Winslow, Dan D"; on Thursday, March 12, 2009; at 11:33 AM -0400 > > Do the stdio functions work on Atari? The following code doesn't seem to > be able to open the file: > ------------------------------------------------------ > void load_bank(unsigned char bank, char *name) > { > FILE *handle; > int size; > > page=0x4000; > handle=fopen(bank,"r"); > printf("handle %i errno %i%c",handle,errno,155); > if ( handle ) > { > printf("open OK%c",155); > while(1) > { > size=fread(page,256,1,handle); > printf("read %i bytes%c",size,155); > page+=size; > if ( size < 256 ) break; Also, a successfull fread() returns the third argument, not the second one. ---------------------------------------------------------------------- To unsubscribe from the list send mail to majordomo@musoftware.de with the string "unsubscribe cc65" in the body(!) of the mail.Received on Sat Mar 14 11:12:09 2009
This archive was generated by hypermail 2.1.8 : 2009-03-14 11:12:12 CET