diff --git a/hacks/hack10.0/proteinUtilDemo.c b/hacks/hack10.0/proteinUtilDemo.c index 40dcba5..130be52 100755 --- a/hacks/hack10.0/proteinUtilDemo.c +++ b/hacks/hack10.0/proteinUtilDemo.c @@ -1,9 +1,3 @@ -/** - * This is a program that demonstrates the usage - * of the the protein utility library. You can - * provide an RNA trigram as a command line argument - * and the corresponding protein will be printed. - */ #include #include @@ -11,18 +5,22 @@ int main(int argc, char **argv) { - if(argc != 2) { + if (argc != 2) { fprintf(stderr, "Usage: %s RNATrigram\n", argv[0]); exit(1); } char prot = rnaToProtein(argv[1]); - if(prot == '\0') { - printf(" \"%s\" is an invalid RNA trigram\n", argv[1]); + if (prot == '\0') { + printf("\"%s\" is an invalid RNA trigram\n", argv[1]); } else { printf("%s -> %c\n", argv[1], prot); } - return 0; + return 0; // Add a return statement to indicate successful program completion } + + + +