projects
/
cmccabe-bin
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
403b100
)
random-word: write output without newline
author
Colin Patrick McCabe
<cmccabe@alumni.cmu.edu>
Sat, 13 Mar 2010 15:54:40 +0000 (07:54 -0800)
committer
Colin Patrick McCabe
<cmccabe@alumni.cmu.edu>
Sat, 13 Mar 2010 15:54:40 +0000 (07:54 -0800)
random-word.c
patch
|
blob
|
history
diff --git
a/random-word.c
b/random-word.c
index
c75047b
..
b55bd1d
100644
(file)
--- 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;
}