random-word: write output without newline
authorColin Patrick McCabe <cmccabe@alumni.cmu.edu>
Sat, 13 Mar 2010 15:54:40 +0000 (07:54 -0800)
committerColin Patrick McCabe <cmccabe@alumni.cmu.edu>
Sat, 13 Mar 2010 15:54:40 +0000 (07:54 -0800)
random-word.c

index c75047b..b55bd1d 100644 (file)
@@ -106,7 +106,7 @@ int main(void)
        fclose(fp);
 
        word = choose_random_word(dict);
-       printf("%s\n", word); 
+       fputs(word, stdout); 
 
        return 0;
 }