diff options
author | rizzo <rizzo@f38db490-d61c-443f-a65b-d21fe96a405b> | 2007-12-19 17:09:01 +0000 |
---|---|---|
committer | rizzo <rizzo@f38db490-d61c-443f-a65b-d21fe96a405b> | 2007-12-19 17:09:01 +0000 |
commit | 36be3451e8356d12943b6c768bf30fe85a3fe821 (patch) | |
tree | 4957711a711281c258656ef1b4e5fd4474ba68d0 /include | |
parent | 6016c98c2b4c0493ff5844f5bd79112d3f48850c (diff) |
Add a new API function, written at least twice in app_voicemail.c
and likely in other places too.
This is quite useful when placing mail/html stuff in config files.
/*!
\brief Convert some C escape sequences (\b\f\n\r\t) into the
equivalent characters.
\brief s The string to be converted (will be modified).
\return The converted string.
*/
char *ast_unescape_c(char *s);
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@93950 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'include')
-rw-r--r-- | include/asterisk/strings.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/include/asterisk/strings.h b/include/asterisk/strings.h index 1ba62ede3..9646e94c2 100644 --- a/include/asterisk/strings.h +++ b/include/asterisk/strings.h @@ -155,6 +155,14 @@ char *ast_strip_quoted(char *s, const char *beg_quotes, const char *end_quotes); char *ast_unescape_semicolon(char *s); /*! + \brief Convert some C escape sequences (\b\f\n\r\t) into the + equivalent characters. + \brief s The string to be converted (will be modified). + \return The converted string. + */ +char *ast_unescape_c(char *s); + +/*! \brief Size-limited null-terminating string copy. \arg dst The destination buffer. \arg src The source string |