This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.
| Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
|---|---|---|
| Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
| Other format: | [Raw text] | |
On 03/09/2015 11:58 AM, Paul Pluzhnikov wrote:
+#define CHAR_IN_SET(ch, char_set) \ + (memchr (char_set "", (ch), sizeof (char_set) - 1) != NULL)
Yes, thanks, that looks good, except the parentheses are redundant in "(ch)".
| Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
|---|---|---|
| Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |