mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-12 15:45:18 +00:00
add ast_build_string_va(), which accepts a varargs list directly
ensure the _entire_ manager_event() output is either queued or sent via ast_carefulwrite() git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6708 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -174,6 +174,20 @@ void ast_copy_string(char *dst, const char *src, size_t size),
|
||||
*/
|
||||
int ast_build_string(char **buffer, size_t *space, const char *fmt, ...) __attribute__ ((format (printf, 3, 4)));
|
||||
|
||||
/*!
|
||||
\brief Build a string in a buffer, designed to be called repeatedly
|
||||
|
||||
This is a wrapper for snprintf, that properly handles the buffer pointer
|
||||
and buffer space available.
|
||||
|
||||
\return 0 on success, non-zero on failure.
|
||||
\param buffer current position in buffer to place string into (will be updated on return)
|
||||
\param space remaining space in buffer (will be updated on return)
|
||||
\param fmt printf-style format string
|
||||
\param ap varargs list of arguments for format
|
||||
*/
|
||||
int ast_build_string_va(char **buffer, size_t *space, const char *fmt, va_list ap);
|
||||
|
||||
/*! Make sure something is true */
|
||||
/*!
|
||||
* Determine if a string containing a boolean value is "true".
|
||||
|
Reference in New Issue
Block a user