summaryrefslogtreecommitdiff
path: root/src/sysctl/sysctl.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2021-05-05 09:56:46 +0200
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2021-05-07 09:10:59 +0200
commite9b88a6d4ec7818a334ee12f50f23706bcc3c7e0 (patch)
tree7e7ade7b26ad2cd5459ea8a9d17c695859c9f155 /src/sysctl/sysctl.c
parentdb1ce3ea1a59b3af5ff2029e4514c7e82f5b94d3 (diff)
downloadsystemd-e9b88a6d4ec7818a334ee12f50f23706bcc3c7e0.tar.gz
string-util: add strextendf() helper, that allows extending some allocated string via a format string
It's not going to be efficient if called in inner loops, but it's oh so handy, and we have some code that does this: asprintf(&p, "%s…", b, …); free(b); b = TAKE_PTR(p); which can now be replaced by the quicker and easier to read: strextendf(&p, "…", …);
Diffstat (limited to 'src/sysctl/sysctl.c')
0 files changed, 0 insertions, 0 deletions