Re: [cc65] cc65/C questions

From: Ullrich von Bassewitz <uz1musoftware.de>
Date: 2006-09-09 16:48:56
On Thu, Sep 07, 2006 at 10:00:17AM -0600, Tom Watt wrote:
> 1. Is there a function that will separate a string into an array of strings
> based on spaces?

You may want to have a look at the strtok function. Its has some drawbacks
(stores internal state so not thread safe, destroys the string passed to the
function) but should work for most purposes.

> 2. I'm using the following function to get text at a prompt.  It works fine
> except if you backspace too much the cursor keeps going and will go up to
> the next line.  Is there an easy way to fix that?

There is no easy fix or simple change that makes your fuction work. My
suggestion is to rewrite the function based on the conio library. The debugger
module that comes with the source package contains some simple text input
functions.

> 3. Is there an existing cc65 source for a full screen Commodore SEQ file
> editor that I can freely (public domain) use to include in my program?

Not that I know of. 

Regards


        Uz


-- 
Ullrich von Bassewitz                                  uz@musoftware.de
----------------------------------------------------------------------
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 Sep 9 16:49:09 2006

This archive was generated by hypermail 2.1.8 : 2006-09-09 16:49:12 CEST