Top "C11" questions

C11 is the informal name of an older standard version (ISO/IEC 9899:2011) of the C programming language.

error: use of undeclared identifier 'errno_t'

Here is my dead simple dummy code: #include <errno.h> int main(void) { errno_t e; return 0; } Which …

c clang c11 errno tr24731
C11 <thread.h> in GCC?

I’m trying to compile some C11 code using thread.h, but I can’t. I've recompiled GCC (running 4.6.2 now), …

c gcc c11
What is C17 and what changes have been made to the language?

As I was checking news about GCC 8, I saw that they added support for the 2017 version of the C language (…

c gcc iso c11 c17
C11 GCC threads.h not found?

The following code #include <threads.h> Gives me this error: fatal error: threads.h: No such file or …

c multithreading c11
How to extract the source filename without path and suffix at compile time?

Using both gcc with -std=c11 and g++ with -std=c++14. E.g. for a file named src/dir/Hello.…

c++ c c++11 c++14 c11
<stdatomic.h> in GCC 4.8?

I'd like to make use of the new atomic operations provided by the C11 standard. However, trying to #include the …

c multithreading gcc atomic c11
Does any C library implement C11 threads for GNU/Linux?

There have been a lot of questions about C11 and C11 threading, but I don't see a definitive answer anywhere: …

c multithreading c11
Dynamic array allocation on stack in C

I just did a experiment yesterday, and find something confusing: #include <stdio.h> int main() { int j; scanf("%…

c c99 c11 variable-length-array
Is there any option to switch between C99 and C11 C standards in Visual Studio?

I am new to Visual Studio Environment and I am using VS2017 Pro. I wanted to write simple program in …

c visual-studio visual-c++ c99 c11
What is the __STDC_VERSION__ value for C11?

I know that compilers use __STDC__ to indicate that a compiler is standard C and, from, there, you can use __…

c macros iso c11