揮発性のメモ2

http://d.hatena.ne.jp/iww/

ソケットのエラーチェック

result = read(sd,NULL,0);
if(result<0) perror("socket error");

こんなひどいコードが他の処理系で許されるかは不明。