Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
struct A {
  int i;
};

struct A *f(int i) {
  struct A *a = (struct A *) malloc(sizeof(struct A));
  a->i = i;
  return a;
}

int main() {
  struct A *a = f(10);
  return a->i;
}