On Thu, 11 Dec 1997, Doppleganger Software wrote: >>If you want a generic parsing implementation that works for anything, try >>looking at my (2*) Parsing patch on my web page. > >It works nicely, but it is a little...err..umm, ugly. Any way to make it >so that the format is: > >(#) <string> > >with the space and no *? >That darn * and no space really bother me. So change the routine. Examples of places to change: + snprintf(digit, TWOX_LEN + 4, "(%d*)", number + 1); + if (sscanf(pbegin, "(%d*)%*s", &number) != 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/08/00 PST