Added support for NULL file pointer in dyad_vwritef()