aboutsummaryrefslogtreecommitdiff
path: root/lib/curl_printf.h
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2020-09-22 17:28:34 +0200
committerDaniel Stenberg <daniel@haxx.se>2020-09-23 08:54:42 +0200
commit7e8561e030fcfaba5cd620d7e9c9ab8356163132 (patch)
treebede470aac7ebaea20edbd604624050cac54fb7e /lib/curl_printf.h
parent23558577023538a17c70933acc5de04bf350d9c2 (diff)
downloadgnurl-7e8561e030fcfaba5cd620d7e9c9ab8356163132.tar.gz
gnurl-7e8561e030fcfaba5cd620d7e9c9ab8356163132.tar.bz2
gnurl-7e8561e030fcfaba5cd620d7e9c9ab8356163132.zip
dynbuf: make *addf() not require extra mallocs
... by introducing a printf() function that appends directly into a dynbuf: Curl_dyn_vprintf(). This avoids the mandatory extra malloc so if the buffer is already big enough it can just printf directly into it. Since this less-malloc version requires tthe use of a library internal printf function, we only provide this version when building libcurl and not for the dynbuf code that is used when building the curl tool. Closes #5998
Diffstat (limited to 'lib/curl_printf.h')
-rw-r--r--lib/curl_printf.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/curl_printf.h b/lib/curl_printf.h
index 0d37b8e57..9d2de7ba8 100644
--- a/lib/curl_printf.h
+++ b/lib/curl_printf.h
@@ -7,7 +7,7 @@
* | (__| |_| | _ <| |___
* \___|\___/|_| \_\_____|
*
- * Copyright (C) 1998 - 2018, Daniel Stenberg, <daniel@haxx.se>, et al.
+ * Copyright (C) 1998 - 2020, Daniel Stenberg, <daniel@haxx.se>, et al.
*
* This software is licensed as described in the file COPYING, which
* you should have received as part of this distribution. The terms