cでさ、メモリを確保する時
char *buff;

buff = (char*)malloc( sizeof( char ) * 100 );
とか書くけど
buff = malloc( sizeof( char ) * 100 );
じゃあいけないんですかね?