s/if( NULL == fp)/if (NULL == fp).