source: trunk/GDE/CLUSTALW/gcgcheck.c

Last change on this file was 176, checked in by jobb, 24 years ago

* empty log message *

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 305 bytes
Line 
1#include <ctype.h>   /* because of toupper() */
2int SeqGCGCheckSum(char *seq, int len);
3
4int SeqGCGCheckSum(char *seq, int len)
5{
6        int  i;
7        long check;
8       
9        for( i=0, check=0; i< len; i++,seq++)
10                check += ((i % 57)+1) * toupper(*seq);
11
12        return(check % 10000);
13}
14
15
Note: See TracBrowser for help on using the repository browser.