On Wed, 4 Mar 1998, Chuck Reed wrote: >for (;count < 801;count++) { > if(*str == '&') > prompt_count += 8; > else > prompt_count++; > } Um...you never change the 'str' variable so you always count the same character of the prompt. Perhaps you mean this: for (i = 0; str[i]; i++) prompt_count += (str[i] == '&' ? 8 : 1); -- 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/15/00 PST