aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Phillips <dbphillipsnz@gmail.com>2015-06-08 19:18:56 +1200
committerDavid Phillips <dbphillipsnz@gmail.com>2015-06-08 19:18:56 +1200
commitecfc8ac8c9de37f8f94468d47b573e1326b2d907 (patch)
treef4852e2b6ded07691a2a7dd1fd27b42698e8b121
parentb06fdbcfa39965d3d6225c298c12fda5aa63a612 (diff)
downloadfractal-gen-ecfc8ac8c9de37f8f94468d47b573e1326b2d907.tar.xz
Changed syntax to allow optional thread count
-rw-r--r--fractal-gen.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/fractal-gen.c b/fractal-gen.c
index 2e06df3..1a77577 100644
--- a/fractal-gen.c
+++ b/fractal-gen.c
@@ -19,9 +19,9 @@ int main(int argc, char **argv)
return EXIT_FAILURE;
}
- if (argc != 4)
+ if (argc != 4 || argc != 5)
{
- fprintf(stderr, "%s size iterat power\n", argv[0]);
+ fprintf(stderr, "%s size iterat power [threads]\n", argv[0]);
return EXIT_FAILURE;
}