]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
update CODING_STYLE
authorLennart Poettering <lennart@poettering.net>
Thu, 8 Oct 2015 10:44:57 +0000 (12:44 +0200)
committerLennart Poettering <lennart@poettering.net>
Thu, 8 Oct 2015 10:49:59 +0000 (12:49 +0200)
CODING_STYLE

index 7fd4af8b873ceaeb875dc2ec7ded955eb7ba4465..d373f4dea3e2a7d19c48d27dc6c5710ce26da5a6 100644 (file)
 - 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.