[cc65] Linked List Problem

Date view Thread view Subject view

From: Payton Byrd (kingdurin_at_yahoo.com)
Date: 2003-12-31 18:53:28


Hello,

I originally posted a message on comp.sys.cbm about
this, but hopefully this would be a more appropriate
forum for my problem.

I'm writing a linked list library for myself and am
having problem retrieving the strings from the nodes. 
You can see the full source and a batch file to build
the source at:

http://www.paytonbyrd.com/LinkedList.zip

The problem is that it appears that the C= is always
displaying the address of the string as the string
instead of the actual string.  I've tried 16 ways from
Sunday to get the string into the printf statement
including the suggestions givin in c.s.c to use the
strdup function.  Any help would be greatly
appreciated.

A secondary problem is that the StringList struct
doesn't seem to be destroyed correctly when I free()
the memory.  Do I need to write a function to
deinitialize the properties of the struct?

I admit, I'm quite spoiled by C++, C#, and Java and
haven't had to program pure C before, so please be nice.

__________________________________
Do you Yahoo!?
Find out what made the Top Yahoo! Searches of 2003
http://search.yahoo.com/top2003
----------------------------------------------------------------------
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-12-31 18:53:44 CET