Damian Jurzysta wrote: > > Hello Alex. > > On 20-Nov-99, you wrote: > > A>> slen += sprintf(buf + slen, "%s ", UPPER(dirs[door])); > A> Change this line to: > A> slen += sprintf(buf + slen, "%s ", UPPER(*dirs[door])); > A> > A> dirs is a string and UPPER upper cases a character, so you want > A> to give it a character instead (done with '*') That's because the advice Alex gave you is to basically change it back to the way it was without changing the format specifier. What you really need is the following... slen += sprintf(buf + slen, "%c%s ", UPPER(*dirs[door]), (dirs[door] + 1)); this will convert the first letter to uppercase and print the rest as-is. Regards, Peter +------------------------------------------------------------+ | Ensure that you have read the CircleMUD Mailing List FAQ: | | http://qsilver.queensu.ca/~fletchra/Circle/list-faq.html | +------------------------------------------------------------+
This archive was generated by hypermail 2b30 : 12/15/00 PST