Skip site navigation (1)Skip section navigation (2)

  
 
  

home | help
JAM_Crc32(3)		     JAM subroutine library		    JAM_Crc32(3)

NAME
     JAM_Crc32 - Calculate CRC32 on a block of data

SYNOPSIS
     #include <jamlib/jam.h>

     ulong JAM_Crc32(uchar* Buffer_PC,
		     ulong  Length_I);

DESCRIPTION
     Calculates  the  Crc32  value for a block of data. All ASCII characters are
     converted to lowercase before calculating the CRC (the input  data  is  un-
     changed).

   Arguments
     Buffer_PC
	    A pointer to the first byte of the data block

     Length_I
	    The number of bytes in the data block

RETURN VALUE
     The Crc32 value

EXAMPLES
     ulong Crc_I;
     uchar Text_AC[32];

     strcpy(Text_AC, "Hello world!\n");

     Crc_I = JAM_Crc32(Text_AC, strlen(Text_AC));

AUTHOR
     This  manual  page  was  created by Sir Raorn <raorn@altlinux.ru>, based on
     original JAMlib documentation by Bjorn Stenberg <bjorn@haxx.nu>  and  Johan
     Billing <billing@df.lth.se>.

SEE ALSO
     jamlib(3)

				   2002-11-07			    JAM_Crc32(3)

Want to link to this manual page? Use this URL:
<https://man.freebsd.org/cgi/man.cgi?query=JAM_Crc32&sektion=3&manpath=FreeBSD+Ports+15.1.quarterly>

home | help