Re: Quick Q.

From: David Sun (wedget@MCI2000.COM)
Date: 09/04/98


Chuck Reed wrote:
>
> Hmm, after looking at it, maybe this is a better way to do what you wanted.
>
> char *get_name_by_id2(long id)
> {
>   int i;
>
>   if (id == -1)
>           return "";
>
>   for (i = 0; i <= top_of_p_table; i++)
>    if ((player_table + i)->id == id)
>      return (CAP(str_dup((player_table + i)->name)));
>     }
>   return "";
> }

is that a stray }? and instead of returning "", return NULL.

--
"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