00001 #include "fasta.h" 00002 #include <stdio.h> 00003 00004 00005 int main(int argc, char** argv) 00006 { 00007 FastaLib *lib; 00008 int len; 00009 00010 if(argc < 2) return 1; 00011 00012 lib = swps3_openLib(argv[1]); 00013 00014 while(swps3_readNextSequence(lib, &len)) { 00015 printf("%d\t%s\n",len,swps3_getSequenceName(lib)); 00016 } 00017 00018 swps3_closeLib(lib); 00019 return 0; 00020 } 00021