summaryrefslogtreecommitdiff
path: root/include/asterisk
diff options
context:
space:
mode:
authorLuigi Rizzo <rizzo@icir.org>2007-12-19 17:09:01 +0000
committerLuigi Rizzo <rizzo@icir.org>2007-12-19 17:09:01 +0000
commit8e4360b0724e41447ea7e88ed27de4a6c79b7fe0 (patch)
tree4957711a711281c258656ef1b4e5fd4474ba68d0 /include/asterisk
parent8afacf169b5f69e8a717d52495ece0125b6c983e (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: https://origsvn.digium.com/svn/asterisk/trunk@93950 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'include/asterisk')
-rw-r--r--include/asterisk/strings.h8
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