From: Ullrich von Bassewitz (uz_at_musoftware.de)
Date: 2001-03-04 10:31:13
On Sat, Mar 03, 2001 at 08:04:15PM -0500, troy silvey wrote: > I made a very simple prog to test problems I > have been having with input from the user on > my C64 prog. Here's the code. There is no working file I/O for *ALL* CBM platforms. gets() and puts() are file I/O (they write to standard output which is a file in C notification), so they are not supposed to work. The Atari is currently the only platform that has file I/O, mainly because of the work of Christian Groessler. If you need file I/O just for reading from the keyboard or writing to the screen, I would suggest using the conio module instead. All conio functions work consistently accross all supported platforms, and you have much better control over the devices. > Sorry to be causing so much trouble lately. :/ This is not your problem:-) First people have bugged me, because programs using printf did not even link (this is still true for all CBM platforms besides the C64). So at one time I decided to add a hack for the C64 low level read() and write() functions that drops the file descriptor and just writes stdout or reads stdin. For one, the read function does not seem to work as expected but as I said it's a hack and not worth repairing. Second I do now get lots of complaints because programs using file I/O will link but do not work. 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.
This archive was generated by hypermail 2.1.3 : 2001-12-14 22:05:39 CET