summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorP. J. McDermott <pjm@nac.net>2011-12-18 04:07:19 (EST)
committer P. J. McDermott <pjm@nac.net>2011-12-18 04:07:19 (EST)
commit36ef8f3e4affd47a77d40cf09c3b06ea496b4f84 (patch)
tree7bbd4df192e5b269706ea539ddb18e50ab933573
parent81de5ae77d6a5f5538ce9aff0eb9ebb009dba31d (diff)
downloadcgol-36ef8f3e4affd47a77d40cf09c3b06ea496b4f84.zip
cgol-36ef8f3e4affd47a77d40cf09c3b06ea496b4f84.tar.gz
cgol-36ef8f3e4affd47a77d40cf09c3b06ea496b4f84.tar.bz2
Print usage information to stderr with line break.
-rw-r--r--src/cgol.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cgol.c b/src/cgol.c
index b4b95e7..d6b28e3 100644
--- a/src/cgol.c
+++ b/src/cgol.c
@@ -245,6 +245,6 @@ print_cell(int i, int j, bool next)
void
usage(const char *invocation)
{
- printf("Usage: %s [-w WIDTH] [-h HEIGHT] [-s SEEDPROB] [-r RATE] "
- "[-n GENERATIONS]", invocation);
+ fprintf(stderr, "Usage: %s [-w WIDTH] [-h HEIGHT] [-s SEEDPROB] [-r RATE] "
+ "[-n GENERATIONS]\n", invocation);
}