#include <stdlib.h>

struct donnee {
  int *t;
};

void f(struct donnee d, int n){
  d.t[0] = n;
}

int main(void){
  struct donnee d;
  d.t = (int *)malloc(10*sizeof(int));
  f(d, 5);

  return 0;
}
