Tk Library Source Code

Artifact [ebea20bab4]
Login

Artifact ebea20bab482c4079435afca511ac3addeedb7b1:

Attachment "crc32.n" to ticket [501339ffff] added by patthoyts 2002-01-09 22:25:14.
'\" 
'\" Copyright (c) 2002 Pat Thoyts <[email protected]>
'\" 
'\" RCS: @(#) $Id$
'\" 
.so man.macros
.TH crc32 n 1.0 CRC32 "Cyclic Redundancy Check (crc32)"
.BS
'\" Note: do not modify the .SH NAME line immediately below!
.SH NAME
::crc32::crc32 \- Perform a 32bit Cyclic Redundancy Check
.SH SYNOPSIS
\fBpackage require Tcl 8.2\fR
.sp
\fBpackage require crc32 ?1.4.1?\fR
.sp
\fB::crc32::crc32\fR \fImsg\fR?
.sp
.BE
.SH DESCRIPTION
.PP
This package provides a Tcl-only implementation of the CRC-32 algorithm.
.SH COMMANDS
.TP
\fB::crc32::crc32\fR \fImsg\fR \fI?format?\fR
The command takes a message and optionally a format string and returns
the CRC32 value using the format specifier provided or %u.
.TP
.SH EXAMPLES
.PP
.CS
% crc32::crc32 {Hello, World!}
3964322768
% crc32::crc32 {Hello, World!} %X
EC4AC3D0
.CE
.SH KEYWORDS
crc, crc32, cyclic redundancy check, data integrity, security