void pdc_close_output(pdc_output *out) { pdc_close_stream(out); if (out->file_offset) { pdc_free(out->pdc, out->file_offset); out->file_offset = 0; } }
void pdc_close_output(pdc_output *out) { if (out->open) { out->open = pdc_false; pdc_close_stream(out); if (out->file_offset) { pdc_free(out->pdc, out->file_offset); out->file_offset = 0; } } }