>>291
入出力引数にすればいいでしょ。
typedef struct {
int* a;
char* b;
} ayaya;
hoge(ayaya* foo) {
*foo.a = (int*)malloc(...;
...;
}