From: Mathieu Rene Date: Tue, 3 Mar 2009 19:01:21 +0000 (+0000) Subject: Add switch_vmprintf X-Git-Tag: v1.0.4~1717 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=790f2c9b644dcd477adb2ff59243305132424ccd;p=thirdparty%2Ffreeswitch.git Add switch_vmprintf git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@12391 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- diff --git a/src/include/switch_core_db.h b/src/include/switch_core_db.h index a85a471ace..9535113951 100644 --- a/src/include/switch_core_db.h +++ b/src/include/switch_core_db.h @@ -541,6 +541,11 @@ SWITCH_DECLARE(int) switch_core_db_changes(switch_core_db_t *db); */ SWITCH_DECLARE(char *) switch_mprintf(const char *zFormat, ...); +/*! + * \see switch_mprintf + */ +SWITCH_DECLARE(char *) switch_vmprintf(const char *zFormat, va_list ap); + SWITCH_END_EXTERN_C #endif /* For Emacs: diff --git a/src/switch_core_db.c b/src/switch_core_db.c index 94d4416b70..863425139e 100644 --- a/src/switch_core_db.c +++ b/src/switch_core_db.c @@ -180,6 +180,12 @@ SWITCH_DECLARE(char *) switch_mprintf(const char *zFormat, ...) return z; } +SWITCH_DECLARE(char *) switch_vmprintf(const char *zFormat, va_list ap) +{ + + return sqlite3_vmprintf(zFormat, ap); +} + SWITCH_DECLARE(switch_core_db_t *) switch_core_db_open_file(char *filename) { switch_core_db_t *db;