Category "c11"

Generic function typedef in C - how to get rid of initialization warning?

I'm experimenting with generic-like code and I have a function like this (a lot of not relevant code removed): typedef uint8_t (*struct_converter_t)(void *, cha

Generic function typedef in C - how to get rid of initialization warning?

I'm experimenting with generic-like code and I have a function like this (a lot of not relevant code removed): typedef uint8_t (*struct_converter_t)(void *, cha

C11 variadic macro : put elements into brackets [duplicate]

I'm looking at a macro, or more likely a combination of macros, that would achieve the following effect : BRACKET(a) => { a } BRACKET(a

Is _Thread_local independent from __STDC_NO_THREADS__?

It seems that currently _Thread_local is independent from __STDC_NO_THREADS__. Consequence: even if an implementation defines __STDC_NO_THREADS__ to 1, then it