void foo(char * data){
char temp[2048*1024];

とかってコードが動くのか動かないのかってくらいの知識はいるよね。