From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <89d1e7b8050822082075a65904@mail.gmail.com> Date: Mon, 22 Aug 2005 17:20:20 +0200 From: "Anselm R. Garbe" To: Fans of the OS Plan 9 from Bell Labs <9fans@cse.psu.edu> Subject: Re: [9fans] Q: checking CD vs. iso image In-Reply-To: <1124730719.3070.34.camel@localhost.localdomain> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <1124730719.3070.34.camel@localhost.localdomain> Topicbox-Message-UUID: 7afcd930-ead0-11e9-9d60-3106f5b1d025 On 8/22/05, alexandr babic wrote: > while(1) > { > r=3Dread(cdfd,(void*)&C,1); > if(r=3D=3D0) break; > r=3Dread(isofd,(void*)&I,1); > if(r=3D=3D0) break; > i++; >=20 > if(C=3D=3DI) print("byte position=3D%d, bytes are same!\n",i); > else print("byte position=3D%d, bytes differ! cd is %d, iso is %d > \n",i,C,I); > } That produces much output and the speed might be too fast to notice a diff = ;) while(1) { .... if(C !=3D I) exits("cd and iso differ at least at byte position %d\n"); } print("cd and iso are equal\n"); ... Regards, --=20 Anselm R. Garbe ><>< www.ebrag.de ><>< GPG key: 0D73F361