RFC: small syscons and kbd patch

Stephen Montgomery-Smith stephen at math.missouri.edu
Fri Dec 5 11:02:01 PST 2008


Nate Eldredge wrote:

> int bangbang(int x) { return !!x; }
> int ternary(int x) { return x ? 1 : 0; }

Stylewise, I prefer

int notzero(int x) { return x!=0; }


More information about the freebsd-hackers mailing list