]> git.ipfire.org Git - thirdparty/systemd.git/blobdiff - CODING_STYLE
tree-wide: make use of new STRLEN() macro everywhere (#7639)
[thirdparty/systemd.git] / CODING_STYLE
index b090db370f005bd62ea1fe437d9ba16fa90a12c5..4119cfec234ffc86aed285002f2d9930851848cb 100644 (file)
   proper event, instead of doing time-based poll loops.
 
 - 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.
+  with sizeof("foo")-1, please use STRLEN() instead.
 
 - If you want to concatenate two or more strings, consider using
   strjoin() rather than asprintf(), as the latter is a lot