| [ << ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
Exceptions: `()', `[]', `->', `.', and `,'. The `()' and `,' operators have their own rules explained elsewhere. The others should not have white space on either side.
malloc().
sizeof
int *x
= malloc (sizeof *x);.
The value of sizeof (char) is guaranteed to be 1, so don't ever
write that expression.
number == 0, for the string
null terminator as character == '\0', and for the null
pointer as pointer == NULL, and similarly for nonzero.
Don't write tests as plain if (variable).
sizeof array / sizeof *array to
calculate the number of elements in an array.
a < x && x < b.
gettext. Most importantly, surround English text strings with
_(...) in order to avoid the need to go through all the code
again later. It is acceptable to write #define _(TEXT) (TEXT) at
the top of the source file if full i18n is not yet desired. See section `Top' in GNU gettext Manual, for more details.
| [ << ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |