char eyecolor[MAX_INPUT_LENGTH];
strcpy(eyecolor, …);
char *show_appearance( CHAR_DATA * ch )
{
static char buf[MSL];
snprintf( buf, MSL, "&wYour &W%s&w eyes twinkle with a need for adventure, and contrast with your\r\n",
"&W%s&w skin. Your &W%s %s&w hair is worn &W%s%s&w. You stand at &W%d'%d\"&w and weigh\r\n",
"&W%d&w pounds, with a &W%s&w build. Your &W%s%s.&D\r\n",
get_eye_color( ch, ch->eyecolor ), get_skin_tone( ch, ch->skintone ),
hair_length[ch->hlength], get_hair_color( ch, ch->hcolor ),
ch->hstyle == 9 ? "as " : "", hair_style[ch->hstyle], feet, inches,
ch->weight, build_name[ch->build], facial_hair[ch->facialhair],
ch->facialhair == 0 ? " face draws all the attention of the ladies" : ch->facialhair == 5 ? //Line: 533
" are neatly trimmed" : " is neatly trimmed" );
char *show_appearance( CHAR_DATA * ch )
{ char buf[MSL];
char *ptr;
…
ptr = str_dup(buf);
return ptr;
}
ch->description = show_appearence();