mirror of
https://github.com/systemd/systemd.git
synced 2024-12-22 17:35:35 +03:00
update CODING_STYLE
This commit is contained in:
parent
8aec6ec510
commit
041f793b6b
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user