[Coco] Re: [Color Computer] String libary
John R. Hogerhuis
jhoger at pobox.com
Mon Sep 26 17:13:55 EDT 2005
On Mon, 2005-09-26 at 20:46 +0000, johnadonaldson at comcast.net wrote:
> Charles,
> That will work, except will not the orginal string get distroyed???
>
> John Donaldson
>
>
There's really no good ad-hoc way of making C-strings like BASIC. BASIC
treats strings in a safe way, and handles allocation and garbage
collection.
Better to find a C string library you like off freshmeat.net or sf.net
and use that. If used on Coco it would need to be ported, but a string
library shouldn't be very big or hard to port.
Or just deal with C strings the C-way. The fact is though that C is not
a good string processing language. It is greath for bootstrapping a
decent library or simple text processing tasks, but that's it.
Depends on the application what will make sense.
-- John.
More information about the Coco
mailing list