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

FreeBSD Manual Pages

  
 
  

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 unchanged).

   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 Jo-
       han Billing <billing@df.lth.se>.

SEE ALSO
       jamlib(3)

				  2002-11-07			  JAM_Crc32(3)

NAME | SYNOPSIS | DESCRIPTION | RETURN VALUE | EXAMPLES | AUTHOR | SEE ALSO

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

home | help