[PHP] Re: fletcher's checksum

2003-01-09 Thread Dave Gervais
ffer + i ); c1 =c1 +c0; } * ( buffer + count - 2 ) = c0 - c1; * ( buffer + count - 1 ) = c1 - 2*c0; } My problem with PHP was with the unsigned char. Thanks again, Dave Gervais Ford, Mike [LSS] wrote: -Original Message- From: Dave Gervais [mailto:[EMAIL PROTECTED]] Sent: 08 Janu

[PHP] fletcher's checksum

2003-01-08 Thread Dave Gervais
Does anybody know how to implement the 8 and 16 bit versions of Fletcher's checksum using PHP? I hit google and came up dry. It's easy enough to find how to do it in C, but PHP if a different story. I know there are plenty of perfectly good checksum options that are standard in PHP, but I'm for