swps3
dblen.c
Go to the documentation of this file.
1 #include "fasta.h"
2 #include <stdio.h>
3 
4 
5 int main(int argc, char** argv)
6 {
7  FastaLib *lib;
8  int len;
9 
10  if(argc < 2) return 1;
11 
12  lib = swps3_openLib(argv[1]);
13 
14  while(swps3_readNextSequence(lib, &len)) {
15  printf("%d\t%s\n",len,swps3_getSequenceName(lib));
16  }
17 
18  swps3_closeLib(lib);
19  return 0;
20 }
21