]> granicus.if.org Git - curl/commitdiff
CODE_STYLE: Added ternary operator example to 'Space around operators'
authorSteve Holme <steve_holme@hotmail.com>
Sat, 9 Apr 2016 16:04:46 +0000 (17:04 +0100)
committerSteve Holme <steve_holme@hotmail.com>
Sat, 9 Apr 2016 16:04:46 +0000 (17:04 +0100)
Following conversation on the libcurl mailing list.

docs/CODE_STYLE.md

index 033a33bce70962f170d5b27d081ef3441c310f93..73a4d94b70360bc481f2aeb0fc4474da8d5ea9a7 100644 (file)
@@ -160,6 +160,7 @@ Examples:
     ptr = &address;
     contents = *pointer;
     complement = ~bits;
+    empty = (!*string) ? TRUE : FALSE;
 
 ## Platform dependent code