In file bots.h:

char* bot_unescape

(char* s)

Unescape a string after it's been received by a bot

Documentation

Unescape a string after it's been received by a bot

Bots depend on rigidly defined return codes. However, since return codes consist of easily used ASCII characters, it's necessary to escape arbitrary user-provided strings. This function reverses this process, yielding the original, unescaped string. It's meant to be used by bots that have received a prompt string from the system.

Parameters:
s - The string to unescape. The string itself is modified, not a copy thereof.
Returns:
The original string. You can either call the function for its side effect, it's return value, or both, just like strcpy().
See Also:
bot_escape().

Alphabetic index



This page was generated with the help of DOC++.