3 ms·
You realize that this is (almost) valid C99? In C99 it looks like this: struct Point { int x; int y; }; struct Point new_point(in
by flohofwoe 7y ago
You realize that this is (almost) valid C99?
In C99 it looks like this:
struct Point {
int x;
int y;
};
struct Point new_point(int x, int y) {
return (struct Point) { .x = x, .y = y };
}
- GlitchMr 7y agoYes. In fact that's intentional.