Quick Q.

From: I Chose No Name (MUDaholic@AOL.COM)
Date: 09/04/98


Sorry for the dumbness of this, but i'm blanking here...
...
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 ((player_table + i)->name);

  return "";
}
...
if your name is Bob it returns bob...i want it to return Bob..simple eh? i
can't remember how to do it :) I believe CAP modifies the string, so set up a
temp variable or something? like i said, i'm totally blanking on this one
so..yeah..thanks :)


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