George wrote: > >and to show that most snippets are quite useful, here are some of my > >more "generic" ones. i hope they find their way to GEORGE GREER's site. > I think you'll want to talk with Alex, not me. He still runs the snippets. oh, i thought alex moved all the snippets to your site. didn't know what was up with his site. BTW, remove the trust code snippet (from quinn) from your site (and alex's at that). he didn't write it. it doesn't work anyways, cuz he doesn't even know how to steal right. [snip] > > char *arg = argument, temp[2]; > 'argument' is already a char *. You'll also cause a warning if you use > -Wshadow, though CircleMUD already causes a load of them. ;) [snip] > > mmc += atoi(temp); > How about: mmc += arg[0] - '0'; [snip] > little snippet from act.informative.c: > > else if ((look_type = search_block(arg, dirs, FALSE)) >= 0) > look_in_direction(ch, look_type); [snip] > > if (!mmc) > > mmc++; > mmc += (mmc == 0); > Although that's a bit much sometimes. :) forgive me, it was written about a year ago. i should've checked it before i posted huh? -- "The optimist sees the doughnut, the pessimist sees the hole." char c[160],z;main(x,d){for/*/ -- Wedge -- /*/(x=159;x-- ;c[x]=32);c[79]=z;c[39]=88/*/ wedget@mci2000.com /*/;for(d=31;x =78,puts(c+z),d--;z=80-z)/*/ high school junior /*/for(;--x;c[x +80-z]=88-56*!(c[z-!0+x]/*/ mud and game coder /*/-c[z+x+1]));} +------------------------------------------------------------+ | 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