Questions tagged [c11]
C11 refers to the ANSI C language standard finalized in 2011.
5 questions
0
votes
1
answer
163
views
An adaptor layer for Pthread, C11, and C++11 threads compatibility
As my next spare-time project, I'm considering writing a suite of compatibility header and associated library, that eases the transition from Single Unix Specification v4 to v5 and C11/C17 to C2X. C++ ...
19
votes
2
answers
2k
views
Why were variable length arrays made optional in C 2011?
When VLAs were introduced in C 1999, I thought it was a great innovation to the language. However, having learned it was made optional in C 2011, I am wondering what led to its change in status, and ...
-3
votes
1
answer
238
views
Could ANSI C standardized linkage syntax from early C wrong? [closed]
Recently I came up to something illogical, reading the latest ANSI C paper. It was talking about linkage but it never mentioned a way to declare internal identifiers inside block-scope (or at least in ...
0
votes
1
answer
279
views
Why are zero length VLAs allowed in C99, but not in C11 any more?
In the comments to this former question, there was a discussion if the C standard allows variable length arrays (VLAs) of length 0 or not. As it turns out, the C99 standard states:
In 6.7.5.2 Array ...
0
votes
2
answers
668
views
Is it acceptable to use C11 generic macros in Objective-C to box numbers?
I was getting tired of repeating types when writing things like this:
NSDictionary* d = @{@"so": [NSNumber numberWithInt:index]),
@"much": [NSNumber numberWithBool:accepted]),
...