cksum

Name

cksum -- 

Synopsis



void        cksum                           (void *buf,
                                             int numbytes,
                                             unsigned char value[4]);

Description

Details

cksum ()

void        cksum                           (void *buf,
                                             int numbytes,
                                             unsigned char value[4]);

If the string A has checksum "value[0,..,3]", and the string B starts at address "buf" and is "numbytes" bytes long, then at the end of this call, "value[0,..,3]" contains the checksum of the string AB (that is, A immediately followed by B). The checksum of the empty string is all zeroes. Only the least significant byte of each element of "value" is significant.

buf : 
numbytes : 
value :