From 9b03bca6e6cc3569537a7f25f79879045fd22348 Mon Sep 17 00:00:00 2001 From: Steve Holme Date: Sat, 9 Apr 2016 17:04:46 +0100 Subject: [PATCH] CODE_STYLE: Added ternary operator example to 'Space around operators' Following conversation on the libcurl mailing list. --- docs/CODE_STYLE.md | 1 + 1 file changed, 1 insertion(+) diff --git a/docs/CODE_STYLE.md b/docs/CODE_STYLE.md index 033a33bce..73a4d94b7 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