Main Page | Alphabetical List | Compound List | File List | Compound Members | File Members

footprint.h File Reference

#include <stdio.h>

Include dependency graph for footprint.h:

Include dependency graph

This graph shows which files directly or indirectly include this file:

Included by dependency graph

Go to the source code of this file.

Functions

char * footprint (FILE *file)
 
Id
footprint.h,v 1.3 2003/12/29 18:06:31 stoerr Exp
returns a footprint of the file.

long crc (char *s)
 returns crc of string

long crc (char *s, int len)
 returns crc of char array

double footPrintDiff (const char *f1, const char *f2)
 returns equivalence percentage of two footprints


Function Documentation

long crc char *  s,
int  len
 

returns crc of char array

Definition at line 81 of file footprint.cc.

References COMPUTE.

Referenced by readheader(), and writeheader().

long crc char *  s  ) 
 

returns crc of string

Definition at line 73 of file footprint.cc.

References COMPUTE.

char* footprint FILE *  file  ) 
 

Id
footprint.h,v 1.3 2003/12/29 18:06:31 stoerr Exp
returns a footprint of the file.

footprint is as follows: cksum of first 5 blocks, cksum of last 5 blocks, take 15 blocks equally spaced from the rest of the file and cksum first 5, next 5 and last 5 current length: 32 chars

Definition at line 119 of file footprint.cc.

References cksumblock(), and encode().

Referenced by correctfile(), main(), and protectfile().

Here is the call graph for this function:

double footPrintDiff const char *  f1,
const char *  f2
 

returns equivalence percentage of two footprints

Definition at line 158 of file footprint.cc.

Referenced by correctfile().


Generated on Tue Dec 30 12:07:36 2003 for ErrorProtect by doxygen 1.3.2