Description:
Discussion about C language standards.
|
|
|
A preprocessor feature we should have had 40 years ago
|
| |
This is going to the C and C++ lists because it is equally applicable to
both.
I've occasionally needed to use the preprocessor to repeat a piece of
code some variable number of times. What would be so hard about
implementing this?
#repeat <identifier> <const-expression>
...
#endrepeat... more »
|
|
mbsrtowcs and EILSEQ
|
| |
Hi,
I am reading [link] which redefines
the definition of POSIX:2008 additional mbsnrtowcs, but meanwhile it
also modifies (a small bit) their version of mbsrtowcs:
[...] change:
past the last character converted (if any)
to:
past the last byte processed (if any)... more »
|
|
How to understand this?
|
| |
...
No, the following does not violate 6.7.2.3:
struct forward;
struct forward
{
char completed;
double definition;
};
That's because only the second declaration of struct forward defines the
content. The first declaration merely establishes that it is a struct.... more »
|
|
How to open Multiple File at a time
|
| |
On Mon, 8 Apr 2013 19:42:02 -0700 (PDT), Ch iu <waterv...@gmail.com>
wrote:
...
This group is for discussion of the C standard.
Post your question in comp.lang.learn.c-c++.
|
|
difference between pointers
|
| |
...
...
Is there any good reason why (intptr_t)&i isn't required to be the same as (intptr_t)(void *)&i? (Crossposted to comp.std.c.)
-- [ T H I S S P A C E I S F O R R E N T ]
Troppo poca cultura ci rende ignoranti, troppa ci rende folli.
-- fathermckenzie di it.cultura.linguistica.italian o... more »
|
|
Array operand of _Alignof
|
| |
N1570 (C11) 6.3.2.1p3 says:
Except when it is the operand of the sizeof operator, the _Alignof
operator, or the unary & operator, or is a string literal used to
initialize an array, an expression that has type ``array of type''
is converted to an expression with type ``pointer to type'' that... more »
|
|
while loop problem
|
| |
I am using some examples of some known book
...
/* Function main begins program execution */
int main()
{
int counter; /* number of grade to be entered next */
int grade; /* grade value */
int total; /* sum of grades input by user */
float average; /* average of grades */
/* initialization phase */... more »
|
|
|