mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-10-24 04:04:16 +00:00
add pool allocated printf function switch_core_sprintf
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4339 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
1 parent
e4947bfbfe
commit
915944b7ed
2 files changed
+24
No files matched your search
@@ -402,6 +402,15 @@ SWITCH_DECLARE(char *) switch_core_strdup(switch_memory_pool_t *pool, const char
|
||||
*/
|
||||
SWITCH_DECLARE(char *) switch_core_session_sprintf(switch_core_session_t *session, const char *fmt, ...);
|
||||
|
||||
/*!
|
||||
\brief printf-style style printing routine. The data is output to a string allocated from the pool
|
||||
\param pool a pool to use for allocation
|
||||
\param fmt The format of the string
|
||||
\param ... The arguments to use while printing the data
|
||||
\return The new string
|
||||
*/
|
||||
SWITCH_DECLARE(char *) switch_core_sprintf(switch_memory_pool_t *pool, const char *fmt, ...);
|
||||
|
||||
/*!
|
||||
\brief Retrieve the memory pool from a session
|
||||
\param session the session to retrieve the pool from
|
||||
|
||||
Reference in new issue
Block a user