summaryrefslogtreecommitdiffstats
path: root/str.h
diff options
context:
space:
mode:
authorMartin Nagy <mnagy@redhat.com>2009-01-14 09:53:10 +0100
committerMartin Nagy <mnagy@redhat.com>2009-01-14 09:53:10 +0100
commit55cd3891797573e07daba831514c73f94a5831ac (patch)
tree92700ba641e6ec1745b884c29ab862ab8764824d /str.h
parent14c6180ac9875059c38dce0240bb383d676164ca (diff)
downloadldap_driver_testing-55cd3891797573e07daba831514c73f94a5831ac.tar.gz
ldap_driver_testing-55cd3891797573e07daba831514c73f94a5831ac.tar.xz
ldap_driver_testing-55cd3891797573e07daba831514c73f94a5831ac.zip
Add two sprintf like functions to str.c, fix a bug
Bug in str__destroy() caused us to try to free a NULL pointer.
Diffstat (limited to 'str.h')
-rw-r--r--str.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/str.h b/str.h
index e3ff17a..c912fa8 100644
--- a/str.h
+++ b/str.h
@@ -48,6 +48,8 @@ isc_result_t str_clone(ld_string_t **dest, const ld_string_t *src _STR_MEM_FLARG
isc_result_t str_init_char(ld_string_t *dest, const char *src);
isc_result_t str_cat_char(ld_string_t *dest, const char *src);
isc_result_t str_cat(ld_string_t *dest, const ld_string_t *src);
+isc_result_t str_sprintf(ld_string_t *dest, const char *format, ...);
+isc_result_t str_vsprintf(ld_string_t *dest, const char *format, va_list ap);
/* These are pseudo-private functions and shouldn't be called directly. */
isc_result_t str__new(isc_mem_t *mctx, ld_string_t **new_str _STR_MEM_FLARG);