Re: String to Integer

From: George (greerga@DRAGON.HAM.MUOHIO.EDU)
Date: 09/30/97


On Tue, 30 Sep 1997, Kareem Glover wrote:

>I was reading somewhere about how this mud was having their character
>skills based off the name they enter. (in you name lies your true
>power). I wanted to add this feature to my mud.  I need some ideas on
>how to convert a string to get a numeric value.

The * is your friend.

(or if you have no idea what I just said...: *str = ascii value of letter
at the current position of the pointer str)

--
George Greer  -  Me@Null.net   | Genius may have its limitations, but stupidity
http://www.van.ml.org/~greerga | is not thus handicapped. -- Elbert Hubbard


     +------------------------------------------------------------+
     | 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/08/00 PST