UINT32 osd_fwrite(osd_file* file, const void* buffer, UINT32 length) { adv_fz* h = (adv_fz*)file; UINT32 r; r = fzwrite(buffer, 1, length, h); log_debug(("osd: osd_fwrite(%p, length:%d) -> %d\n", file, (int)length, (int)r)); return r; }
/** * Write the MNG file signature. * \param f File to write. * \param count Pointer at the number of bytes written. It may be 0. */ adv_error adv_mng_write_signature(adv_fz* f, unsigned* count) { if (fzwrite(MNG_Signature, 8, 1, f) != 1) { error_set("Error writing the signature"); return -1; } if (count) *count += 8; return 0; }