Re: [code] do_title

From: Chris Hyde (slugger@CRYOGEN.FERRIS.EDU)
Date: 04/08/98


> problems. Most of which were oriented along the lines of me getting a
> title with various numbers of garbage characters. The most frequent
> problem was getting the line that was my host address in my title.
> If anyone has any tips on how to successfully parse the title input
> and set it to a title without getting a load of garbage mixed up with
> the string, it'd be most

It would appear that you did not properly initialize the pointer.  It is
grabbing whatever junk in memory it is pointing at.  At the beginning of
your code to do this, set the pointer you use = '\0'.  That will clear out
whatever garbage might be at that point in memory.

Llewelyn of Erendor


     +------------------------------------------------------------+
     | Ensure that you have read the CircleMUD Mailing List FAQ:  |
     | http://democracy.queensu.ca/~fletcher/Circle/list-faq.html |
     +------------------------------------------------------------+



This archive was generated by hypermail 2b30 : 12/15/00 PST