Questions tagged [c17]

C17 is the informal name of the current standard (ISO/IEC 9899:2018) of the C programming language. It replaces C11, but introduces no new features. Instead the focus of C17 has been to resolve defect reports (DRs).

Important Note: All C related questions, shall be tagged as , and then as a complement, each should specify the version of the standard it is using. In case of the current standard, this complement should be the tag. Please see the tag for details.

Detection

A standard macro __STDC_VERSION__ is defined with the value 201710L to indicate that C17 support is available.

More Info:

64 questions
-1
votes
3 answers

Is there a standard way to prohibit reading (via assignment) of a variable?

It is known and useful features that: const type qualifier prohibits writing (modification) of a variable register storage-class specifier prohibits taking address of a variable However, is there a standard way to prohibit reading (via assignment)…
pmor
  • 5,392
  • 4
  • 17
  • 36
-1
votes
1 answer

Is program translation direction well-defined?

It may sound obvious, but just out of curiosity: is program translation direction well-defined (i.e. top-to-bottom, left-to-right)? Is it explicitly defined in the standard?
pmor
  • 5,392
  • 4
  • 17
  • 36
-3
votes
1 answer

If an implementation supports extra nonstandard features, then is such implementation conforming?

Follow-up question for: Do unsupported standard features affect conformance?. Question: if an implementation supports extra features which are not described in the C standard, nor in any "extension document", then is such implementation…
pmor
  • 5,392
  • 4
  • 17
  • 36
-9
votes
1 answer

windows memory formatting issue

I am trying to make this dynamic reallocation work in a portable fashion. My program accepts a line of text from a user and appends it to a buffer. If the length of text in the buffer is 20 or more, it removes the first 20 characters and moves…
1 2 3 4
5