seq_escape — print string into buffer, escaping some characters
target buffer
string
set of characters that need escaping
Puts string into buffer, replacing each occurrence of character from esc with usual octal escape. Returns 0 in case of success, -1 - in case of overflow.