On Wed, 4 Mar 1998, Akuma/Chris Baggett/DOOMer wrote: >> while ((tilde = strchr(str, '~'))) >> *tilde = ' '; > >why not just use a show_tilde() function in fread_string, >and use a hide_tilde() function in strip_string (or strip_cr() whatever) >(Warning: Mailer Code that may be incorrect in the loop sections) Mainly because CircleMUD doesn't have a 'strip_string()' function and any OLC system added will not necessarily do the transformation. OasisOLC may be changed to do that, but that doesn't mean everyone else will. Although if you think about it, nothing in stock CircleMUD cares about a ~ either. :) >for (;str && *str; str++) > if (*str == '~') > *str = HIDDEN_TILDE; My way (strchr) works better. :) I think it's best done by the OLC package actually. -- 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