Re: looking for a crc code
Re: looking for a crc code
- Subject: Re: looking for a crc code
- From: Michael Hall <email@hidden>
- Date: Sat, 14 Jun 2008 12:32:53 -0700 (PDT)
--- Andrew Farmer <email@hidden> wrote:
>
> Yep. There was recently a discussion of this on the
> list, actually.
>
Missed that, sorry.
> > fprintf(stdout,"crc=%i\n",crc);
>
> Note that this'll print out the CRC as a signed
> integer, which is
> almost certainly not what you want.
>
> > Unfortunately, testing got sort of inconsistent
> results.
> > ./testcrc
> > crc=-286616648
>
> Like I said. If you convert this to hex, you'll get
> 0xeeea93b8, which
That is what I got.
#-286616648
$eeea93b8 #286616648 #-286616648
'○↑モᄌ'
> is the correct CRC32 of "test".
>
> > doesn't seem to work out quite the same as...
> > crc32 test.txt
> > f783d7be
>
> This is the CRC32 of "test\n". Watch your newlines.
>
Huh, turned invisibles on in BBEdit and thought I got
rid of that.
But then I guess you could run the tcl one and get the
output as another option. Still no need for coding or
having to understand crc. zlib linked is probably
better performance though I'd have to guess.
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden