Re: [cc65] Error: Incompatible pointer types

Date view Thread view Subject view

From: Ullrich von Bassewitz (uz_at_musoftware.de)
Date: 2003-11-23 22:46:36


On Sun, Nov 23, 2003 at 04:14:58PM -0500, Raj Wurttemberg wrote:
> This is the example from the book. Nothing complicated. :) All of the
> examples in my C books show the scanf like above. Is it different for cc65?

You asked this before, remember? scanf does not work with cc65 because the
existing file routines don't have ungetc(). So you will have to use sscanf
instead (note the different name). However, sscanf works with strings, so you
will have to read a line of input and then pass this line to sscanf. My last
mail had a small code snippet how to do that.

> How should I code the above to work with cc65 (c64 target)?

Like described in my last mail covering this topic:

        http://www.cc65.org/mailarchive/2003-11/3789.html

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 : 2003-11-23 22:46:54 CET