From 36ef8f3e4affd47a77d40cf09c3b06ea496b4f84 Mon Sep 17 00:00:00 2001 From: P. J. McDermott Date: Sun, 18 Dec 2011 04:07:19 -0500 Subject: Print usage information to stderr with line break. --- 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); } -- cgit v0.9.1