#include <stdio.h>

int foo1(int a, int b, int *r) {
    *r = 2*b;
    return 2*a;
}

struct Foo {
    int bar;
    int baz;
};
struct Foo foo2(int a, int b) {
    struct Foo res;
    res.bar = 2*a;
    res.baz = 2*b;
    return res;
}

int main(void) {
	int i, j;

    i = foo1(7, -3, &j);

    struct Foo tmp = foo2(-7, 3);

    printf("return values: (%d, %d) and (%d, %d)\n", i, j, tmp.bar, tmp.baz);
	return 0;
}
