On Mon, 1 Sep 1997, J.T. wrote: >I know this is probably really stupid, but I'm really tired and I can't >seem to get it to work. I added the sorted do_who snippet and I keep >getting this error: >act.informative.c: In function `do_who': >act.informative.c:1060: warning: `tch' might be used uninitialized in >this function > Initialize tch to NULL and then try who to see if anything crashes (and was thereby using the garbage pointer) >[Immortal] Mordrek the Implementor instead of [55 Wa] blah blah... >Any ideas of how I could do that? const char *god_who[] = { "Immrt", " God ", "GrGod", "-Imp-" }; if (GET_LEVEL(ch) >= LVL_IMMORT) sprintf(buf, "[ %s ] %s %s", god_who[GET_LEVEL(ch) - LVL_IMMORT], GET_NAME(ch), GET_TITLE(ch)); else [the usual] -- 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