76
77
char *index_filename = argv[optind++];
77
78
char *fasta_filename = argv[optind++];
78
79
FILE *data_file, *index_file, *fasta_file;
83
err = ffindex_index_open(data_filename, index_filename, "w", &data_file, &index_file, &offset);
90
87
fasta_file = fopen(fasta_filename, "r");
91
88
if(fasta_file == NULL) { perror(fasta_filename); return EXIT_FAILURE; }
94
91
char *fasta_data = ffindex_mmap_data(fasta_file, &fasta_size);
97
93
char name[FFINDEX_MAX_ENTRY_NAME_LENTH];