From: Lennart Poettering Date: Thu, 8 Oct 2015 10:44:57 +0000 (+0200) Subject: update CODING_STYLE X-Git-Tag: v228~228^2~8 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=041f793b6b1e4b86edc909b4b2867463b3ef3efd;p=thirdparty%2Fsystemd.git update CODING_STYLE --- diff --git a/CODING_STYLE b/CODING_STYLE index 7fd4af8b873..d373f4dea3e 100644 --- a/CODING_STYLE +++ b/CODING_STYLE @@ -342,3 +342,7 @@ - To determine the length of a constant string "foo", don't bother with sizeof("foo")-1, please use strlen("foo") directly. gcc knows strlen() anyway and turns it into a constant expression if possible. + +- If you want to concatenate two or more strings, consider using + strjoin() rather than asprintf(), as the latter is a lot + slower. This matters particularly in inner loops.