Hello to all,
Unable to locate the source of my error. Any help would be great. Here is the code:
Code:
#include <stdio.h>
#include <string.h>
#include <ctype.h>
#include <stdlib.h>
int main()
{
char input[1000] ;
char *firstWord, *command ;
for(;;)
{
printf("SeqTool> ") ;
fgets(input, 1000, stdin) ;
firstWord = strtok( input, " \t" ) ;
command = strtok( NULL, " \t" ) ;
// Load sequence in FASTA format
if(strcmp ( command, "read" ))
{
printf("Not available");
}
// Write sequence in FASTA format
else if (strcmp ( command, "write"))
{
printf("Not available");
}
// Display a detailed report for a selected sequence
else if (strcmp ( command, "show"))
{
printf("Not available");
}
// Display a summary list of loaded sequences
else if (strcmp ( command, "list"))
{
printf("Not available");
}
// Align two nucleotide sequences
else if (strcmp (command, "align"))
{
printf("Not available");
}
// Quit
else if (strcmp (command, "quit"))
{
printf("Not available");
}
// Any other command
else
{
printf("Improper command");
}
continue ;
}
return(0) ;
}