> what does CAP(buf); do in the following code? > strcpy(buf, PERS(i, ch)); > CAP(buf); It copies name of character into buf, then CAPs first letter of buf. > is it suppose to convert a characters name to all capitalized letters? No, it will CAP only first letter (look in UTILS.H): #define CAP(st) (*(st) = UPPER(*(st)), st) Btw, it modifies the string, so never use something like CAP(PERS()) because it will change first letter of person's name permanently. > i put a > send_to_char(buf, ch); > before and after CAP(buf); > and logged on two characters, Doctor and Testdummy > diagnose testdummy > TestdummyTestdummyTestdummy is in excellent condition. > it seems like nothing has changed from the CAP(buf); proceedure Probably Doctor and Testdummy arleady had capped first letter. Try "janitor" or another mob with uncapped first letter. Andrey (andrey@alex-ua.com) aka Zmey//RMUD +------------------------------------------------------------+ | 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/08/00 PST