Sophie

Sophie

distrib > Mandriva > 2009.0 > i586 > by-pkgid > 770d8ea296685ed80b4dd95a314c5d7f > files > 23

libdsk-debug-1.2.1-1mdv2009.0.i586.rpm


/* The following types must have exact sizes: */

typedef unsigned char byte;        /* MUST be 8 bits */
typedef unsigned short word16;     /* MUST be 16 bits */

void CRC_Init(byte *table);        /* Initialise. Passed the address of */
                                   /* a 512-byte buffer used for workspace */
void CRC_Clear(void);              /* Reset the CRC */ 
void CRC_Update(byte a);           /* Add a byte to the CRC */
word16 CRC_Done(void);             /* Get the completed CRC */
byte *CRC_Table(void);             /* Return the workspace address */