home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / gnu / g / help / 1710 < prev    next >
Encoding:
Text File  |  1993-01-27  |  1.2 KB  |  31 lines

  1. Newsgroups: gnu.g++.help
  2. Path: sparky!uunet!uunet.ca!canrem!telly!utzoo!torn!cs.utexas.edu!sdd.hp.com!nigel.msen.com!emory!gatech!paladin.american.edu!news.univie.ac.at!hp4at!mcsun!sun4nl!utrcu1!klamer
  3. From: klamer@mi.el.utwente.nl (Klamer Schutte)
  4. Subject: Re: help!
  5. Message-ID: <klamer.728141403@mi.el.utwente.nl>
  6. Keywords: Linker, ld, collect
  7. Sender: news@utwente.nl (USENET News System)
  8. Organization: University of Twente, BSC-El
  9. References: <1993Jan21.004406.6508@informix.com> <7684@sersun1.essex.ac.uk>
  10. Date: Wed, 27 Jan 1993 13:30:03 GMT
  11. Lines: 18
  12.  
  13. In <7684@sersun1.essex.ac.uk> palmm@csc2.essex.ac.uk (Palmer M J) writes:
  14.  
  15.     >> dicussion about linked list implementation deleted <<
  16.  
  17. The problem you have is in the concept string. You expect the behaviour
  18. of a decent string, and you use char *.
  19.  
  20. You get the expected behaviour by using the String type defined by
  21. #include <String.h>. Just change your typedef line to:
  22.    typedef String Type;
  23. instead of
  24.    typedef char * Type;
  25.  
  26. Klamer
  27. --
  28. Klamer Schutte            Tel: +31-53-892778    Fax: +31-53-340045
  29. Faculty of electrical engineering -- University of Twente, The Netherlands
  30. preferred: klamer@mi.el.utwente.nl     SMTP: klamer@utelmi01.el.utwente.nl
  31.