~ubuntu-branches/debian/sid/mafft/sid

« back to all changes in this revision

Viewing changes to core/dummy.c

  • Committer: Bazaar Package Importer
  • Author(s): Andreas Tille
  • Date: 2011-03-12 00:02:43 UTC
  • mfrom: (1.1.7 upstream)
  • Revision ID: james.westby@ubuntu.com-20110312000243-1yx6ho40e2kf9nxw
Tags: 6.850-1
* New upstream version
* Adapted patch to new upstream
* Debhelper 8 (control + compat)
* debian/rules: Switch to dh
* debian/links: override broken symlinks created in Makefile

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#include "mltaln.h"
2
 
 
3
 
#define ALNLEN 1e5
4
 
 
5
 
int main()
6
 
{
7
 
        int res;
8
 
        static int nlen[M];
9
 
        static char name[M][B];
10
 
        static char **seq;
11
 
 
12
 
        seq = AllocateCharMtx( 2, ALNLEN );
13
 
 
14
 
        njob = 2;
15
 
        strcpy( name[0], ">name1" );
16
 
        strcpy( name[1], ">name2" );
17
 
        strcpy( seq[0], "atgcctaatgccgta" );
18
 
        strcpy( seq[1], "atgccgtaatgccgta" );
19
 
 
20
 
        nlen[0] = strlen( seq[0] );
21
 
        nlen[1] = strlen( seq[1] );
22
 
        nlenmax = MAX( nlen[0], nlen[1] );
23
 
 
24
 
        dorp = 'd';
25
 
        scoremtx = -1;
26
 
 
27
 
        res = disttbfast( seq, nlen, name );
28
 
 
29
 
        fprintf( stdout, "%s\n", name[0] );
30
 
        fprintf( stdout, "%s\n", seq[0] );
31
 
        fprintf( stdout, "%s\n", name[1] );
32
 
        fprintf( stdout, "%s\n", seq[1] );
33
 
        return( res );
34
 
}