Re: [NEWBIE][CODE] Stupid Buffer Thing

From: Mike Breuer (mbreuer@new.rr.com)
Date: 06/25/01


----- Original Message -----
From: "Welcor" <welcor@DUNE.NET>
Sent: Sunday, June 24, 2001 7:13 PM


> > Output:
> > memberslis <- should be Nae' Blis members
> The above output seems to indicate that in the end of clan->name
> there is a \r

This is a good thought, and is probably correct.  If it is, then the clan name
is probably actually something like this:  "  Nae' Blis\r"  Check where you're
reading the name from and see if it's possible that your getting two spaces in
front of it and leaving the \r.  Look back in the archives a couple of
days...there was a discussion about trailing \r's from the get_line function
that may be relevant.

> - the behaviour might be caused by the ' in "Nae' Blis"

This would not be the case, since clan->name is passed into sprintf as the
third parameter, there is no parsing of the string.  There is no escape
sequence for a single quote in any case.

Mike

--
   +---------------------------------------------------------------+
   | FAQ: http://qsilver.queensu.ca/~fletchra/Circle/list-faq.html |
   | Archives: http://post.queensu.ca/listserv/wwwarch/circle.html |
   +---------------------------------------------------------------+



This archive was generated by hypermail 2b30 : 12/05/01 PST