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