aboutsummaryrefslogtreecommitdiffstats
path: root/include/osmocom/core
diff options
context:
space:
mode:
authorVadim Yanitskiy <vyanitskiy@sysmocom.de>2021-06-07 16:30:28 +0200
committerVadim Yanitskiy <vyanitskiy@sysmocom.de>2021-10-13 14:03:26 +0300
commitc549719088ebd71677626e14329cd0c1aeef5622 (patch)
treec63d597e782fc4ef4ad1ab6850ef5204913b2be3 /include/osmocom/core
parent69cc4b613b7ca2b7f8b70f30d31069949ac952ce (diff)
utils: introduce osmo_talloc_replace_string_fmt()
Diffstat (limited to 'include/osmocom/core')
-rw-r--r--include/osmocom/core/utils.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/osmocom/core/utils.h b/include/osmocom/core/utils.h
index 85a8cb31..1fdb0eb8 100644
--- a/include/osmocom/core/utils.h
+++ b/include/osmocom/core/utils.h
@@ -117,6 +117,8 @@ static inline void osmo_talloc_replace_string(void *ctx, char **dst, const char
*dst = talloc_strdup(ctx, newstr);
}
+void osmo_talloc_replace_string_fmt(void *ctx, char **dst, const char *fmt, ...);
+
/*! Append to a string and re-/allocate if necessary.
* \param[in] ctx Talloc context to use for initial allocation.
* \param[in,out] dest char* to re-/allocate and append to.