lib/snofsig.c

Go to the documentation of this file.
00001 /* snofSig - signature (first 16 bytes) of a snof format file. 
00002  *
00003  * This file is copyright 2002 Jim Kent, but license is hereby
00004  * granted for all use - public, private or commercial. */
00005 
00006 #include "common.h"
00007 #include "snofmake.h"
00008 
00009 static char const rcsid[] = "$Id: snofsig.c,v 1.4 2003/05/06 07:33:44 kate Exp $";
00010 
00011 static int ixSig[4] = {0x693F8ED1, 0x7EDA1C32, 0x4BA58983, 0x277CB89C,};
00012 
00013 void snofSignature(char **rSig, int *rSigSize)
00014 /* Return signature. */
00015 {
00016 *rSig = (char *)ixSig;
00017 *rSigSize = sizeof(ixSig);
00018 }
00019 
00020 boolean isSnofSig(void *sig)
00021 /* Return true if sig is right. */
00022 {
00023 return memcmp(sig, ixSig, sizeof(ixSig)) == 0;
00024 }
00025 

Generated on Tue Dec 25 18:39:31 2007 for blat by  doxygen 1.5.2