>>148
char buf[4096] = {0}; とすればヨロシ。

つ http://stackoverflow.com/questions/2589749/initialize-array-to-0-in-c