From: Colin Patrick McCabe Date: Sat, 13 Mar 2010 15:54:40 +0000 (-0800) Subject: random-word: write output without newline X-Git-Url: http://club.cc.cmu.edu/~cmccabe/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=240305aa4d362226d0850a897fefba004cb113b0;p=cmccabe-bin random-word: write output without newline --- diff --git a/random-word.c b/random-word.c index c75047b..b55bd1d 100644 --- a/random-word.c +++ b/random-word.c @@ -106,7 +106,7 @@ int main(void) fclose(fp); word = choose_random_word(dict); - printf("%s\n", word); + fputs(word, stdout); return 0; }