2008-05-24 before,now before=NULL before->prev = NULL; は待ちがい before = (LINE *)malloc(sizeof(LINE)); before->prev = NULL; が正しい