char *foo(void){
char *buf;
buf = calloc(SIZE, sizeof(char));
return buf;
}
int main(void){
char *p;
p = foo();
/* なんか処理 */
free(p);
return 0;
}