In file bots.h:

char* bot_escape

(char* s)

Escape a string before it's sent to a bot

Documentation

Escape a string before it's sent to 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. Any character sequences that look like new-line digit digit digit space are escaped. You can use bot_unescape() to reverse this.

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

Alphabetic index



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