diff options
author | Vadim Yanitskiy <vyanitskiy@sysmocom.de> | 2021-06-07 16:30:28 +0200 |
---|---|---|
committer | Vadim Yanitskiy <vyanitskiy@sysmocom.de> | 2021-10-13 14:03:26 +0300 |
commit | c549719088ebd71677626e14329cd0c1aeef5622 (patch) | |
tree | c63d597e782fc4ef4ad1ab6850ef5204913b2be3 /include/osmocom/core | |
parent | 69cc4b613b7ca2b7f8b70f30d31069949ac952ce (diff) |
utils: introduce osmo_talloc_replace_string_fmt()
Change-Id: I6b84fa0525555a98c531fc558e5dc1298fec00c1
Diffstat (limited to 'include/osmocom/core')
-rw-r--r-- | include/osmocom/core/utils.h | 2 |
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. |