At 03:13 PM 3/19/98 -0000, you wrote: >On 3/19/98 11:53 PM, Jon Barrett (mixtli@SINFO.NET) stated: > >>fills the variable with the UID_CHAR which is '\\e' and then with the >>playes id_num. But when I watch the variable at runtime it is actually >>'e1'. Where did the '\' go? I thought it could be because of the %c in >>the above sprintf, or maybe it is compikler specific. >>Anyway, in the next check from get_char(), which is called from >>find_replacement(): >> >>if (*name == UID_CHAR) >> >>It is looking for that '\e' which is the UID_CHAR. Since the '\' is >>missing the check is always false and a null is always returned. > >No, your misinterpretting it. > >It is looking for '\e', or ascii value 5 (cntrl-e), NOT "\\e" which would >be read as \e. \ is an escape sequence. > >- Chris Jacobson > Ah, I understand that \ is an escape sequence, but UID_CHAR is defined as '\\e' in ds_scripts.h so the \ should still be there when I watch the variable. I took your response as advice and changed the UID_CHAR to '\e' When I compiled I got and unrecognized character escape sequence error. I checked into the help for that error and it said that when that happens, the \ will be deleted and the following character will be printed. Hmm....maybe thats the problem... .....Jon..... +------------------------------------------------------------+ | 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