From: Steve Holme Date: Sat, 9 Apr 2016 16:04:46 +0000 (+0100) Subject: CODE_STYLE: Added ternary operator example to 'Space around operators' X-Git-Tag: curl-7_49_0~151 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=9b03bca6e6cc3569537a7f25f79879045fd22348;p=thirdparty%2Fcurl.git CODE_STYLE: Added ternary operator example to 'Space around operators' Following conversation on the libcurl mailing list. --- diff --git a/docs/CODE_STYLE.md b/docs/CODE_STYLE.md index 033a33bce7..73a4d94b70 100644 --- a/docs/CODE_STYLE.md +++ b/docs/CODE_STYLE.md @@ -160,6 +160,7 @@ Examples: ptr = &address; contents = *pointer; complement = ~bits; + empty = (!*string) ? TRUE : FALSE; ## Platform dependent code