Hi /prog/. When I program C I usually just use whatever features gcc allows without really worrying about different standards. However, I am now trying to learn strict C89. I know that it's no longer "standard" C, but I want to learn it anyways.
typedef struct {
int a, b;
} s;
So normally, if I wanted to return an s from a function I would just use return (s) {1, 2};, but apparently that's not allowed in C89. So right now I'm using s res;
res.a = 1;
res.b = 2;
return res;
>>76
I think the AIX calling conventions will do this. It's just that x86 has so few registers.
Name:
Anonymous2010-09-03 0:40
>>81
Why the fuck would you sage this? This thread is actually interesting, and you post an interesting and informative comment, and yet you sage. Now this thread is the last one on the page, and stupid shit like "interbutt radio" is on top.
>>82
Apart from the weak troll, I have to agree. /prog/riders should bump worthy threads and posts -- not that there's that many of them in the first place!