Re: [cc65] Error: Incompatible pointer types

Date view Thread view Subject view

From: Ullrich von Bassewitz (
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:



Ullrich von Bassewitz                        
To unsubscribe from the list send mail to 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