unsigned char Bcc; unsigned char BerekenBcc( char *str, int len) { inti,dat,f; for(Bcc=0;len,len--) { dat=*str++; data=data & 0xff; for(i=0;i<8;++i) { f=i & (data^Bcc); Bcc=(unsigned char) (Bcc >> 1); data= data >>1; if(f)Bcc=(unsigned char) (Bcc0x8c); } } return(Bcc); }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)