Re: [PATCH] linux/string.h: Introduce streq macro.

From: Davidlohr Bueso
Date: Tue Apr 26 2011 - 16:27:41 EST


On Tue, 2011-04-26 at 15:49 -0300, Thiago Farina wrote:
> This macro is arguably more readable than its variants:
> - !strcmp(a, b)
> - strcmp(a, b) == 0

Anyone how is going to be reading kernel C code, can understand strcmp I
think.

Cheers,
Davidlohr

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/