From: "Anselm R. Garbe" <garbeam@gmail.com>
To: Fans of the OS Plan 9 from Bell Labs <9fans@cse.psu.edu>
Subject: Re: [9fans] Q: checking CD vs. iso image
Date: Mon, 22 Aug 2005 17:20:20 +0200 [thread overview]
Message-ID: <89d1e7b8050822082075a65904@mail.gmail.com> (raw)
In-Reply-To: <1124730719.3070.34.camel@localhost.localdomain>
On 8/22/05, alexandr babic <alexandr@babi.cz> wrote:
> while(1)
> {
> r=read(cdfd,(void*)&C,1);
> if(r==0) break;
> r=read(isofd,(void*)&I,1);
> if(r==0) break;
> i++;
>
> if(C==I) print("byte position=%d, bytes are same!\n",i);
> else print("byte position=%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 != I)
exits("cd and iso differ at least at byte position %d\n");
}
print("cd and iso are equal\n");
...
Regards,
--
Anselm R. Garbe ><>< www.ebrag.de ><>< GPG key: 0D73F361
next prev parent reply other threads:[~2005-08-22 15:20 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-08-22 17:11 alexandr babic
2005-08-22 15:16 ` Gorka guardiola
2005-08-22 15:20 ` Anselm R. Garbe [this message]
-- strict thread matches above, loose matches on Subject: below --
2005-08-22 12:08 pac7
2005-08-22 12:38 ` Russ Cox
2005-08-22 12:46 ` Uriel
2005-08-22 12:55 ` Russ Cox
2005-08-22 15:05 ` Gorka guardiola
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=89d1e7b8050822082075a65904@mail.gmail.com \
--to=garbeam@gmail.com \
--cc=9fans@cse.psu.edu \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).