Preparation of hydrogen chloride from ammonium chloride