Re: Bug in list_one_char()

From: George Greer (greerga@circlemud.org)
Date: 06/28/02


On Fri, 28 Jun 2002, Ken Ray wrote:

>Have I found the bug?  The send_to_char call has two items it sends, the
>first a single character which is the upper case conversion of the first
>character in the character's short description.  The next is a string -
>the complete short description.

Yes. If you notice all the other UPPER() usages, I changed them to
"UPPER(foo)" and "foo + 1".  This was to avoid needing an extra buffer like
CAP() used to need.  Since the global buffers went away, there were a lot
fewer buffers that were really needed.

>I guess what is really needed is a variation of the UPPER() function that
>will take a complete string, and just capitalize the frist character.

CAP does that, but it modifies the string.

--
George Greer
greerga@circlemud.org

--
   +---------------------------------------------------------------+
   | FAQ: http://qsilver.queensu.ca/~fletchra/Circle/list-faq.html |
   | Archives: http://post.queensu.ca/listserv/wwwarch/circle.html |
   | Newbie List:  http://groups.yahoo.com/group/circle-newbies/   |
   +---------------------------------------------------------------+



This archive was generated by hypermail 2b30 : 06/25/03 PDT