Alejandro Colomar wrote:
> BTW, another way to implement it as a const-generic macro would be
>
> #define strnul(s) \
> ({ \
> __auto_type s_ = s; \
> \
> s_ + strlen(s_); \
> })But compound expressions are not ISO C standardized, unlike _Generic. Which means that 10 years from now, most compilers will support _Generic but MSVC will still not support compound expressions. Bruno
