File:  [Synchronet] / sbbs / sbbs2 / smb / crc32.c
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs
Tue Apr 24 16:37:52 2018 UTC (8 years, 3 months ago) by root
Branches: digitaldynamics, MAIN
CVS tags: v3_00c, v2_30b, HEAD
2.30b OS/2

/* CRC32.C */

/* Developed 1990-1997 by Rob Swindell; PO Box 501, Yorba Linda, CA 92885 */

/* 32-bit CRC of a buffer */

#include "smblib.h"
#include "crc32.h"

#ifdef __NT__
#	define CRCCALL _pascal
#else
#	define CRCCALL
#endif

ulong CRCCALL crc32(char *buf, ulong len)
{
	ulong l,crc=0xffffffff;

for(l=0;l<len;l++)
	crc=ucrc32(buf[l],crc);
return(~crc);
}

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.