Please don't do this. With ==NULL/!=NULL, it is clear what<randomvariable> could be (integer or pointer) without needingto look it up. It also reads quite strange: "if not buffer".For bools ('adjectives' / 'is a'), it works, not so much for ptrs.Hence:

>+If you give your variables and pointers good names, there is never a need>+to compare the value stored in that variable to NULL or true/false, so>+omit all that and keep it short.

>+ ptr = s->next;>+ if (!ptr)>+ return;

Not agreed.

>+>+ v = (read_byte(register));>+ if (v & mask)>+ return;

well, yes.

>+ if (is_prime(number))

Yes.

And I'd also like to mention one rather special case where I'd ratherlike to see ==0 than ! for clarity (!strcmp looks like !streq, soone needs to look twice to get it):