Mercurial > hg > CbC > CbC_gcc
diff CbC-examples/quicksort/quicksort_c.c @ 23:775dfe898662
add quicksort version 2.
author | kent <kent@cr.ie.u-ryukyu.ac.jp> |
---|---|
date | Wed, 14 Oct 2009 12:12:51 +0900 |
parents | 0eb6cac880f0 |
children |
line wrap: on
line diff
--- a/CbC-examples/quicksort/quicksort_c.c Tue Oct 13 17:15:58 2009 +0900 +++ b/CbC-examples/quicksort/quicksort_c.c Wed Oct 14 12:12:51 2009 +0900 @@ -147,15 +147,15 @@ int loop=1; int opt, i; - while ((opt = getopt(argc, argv, "r:s:n:")) != -1) { + while ((opt = getopt(argc, argv, "t:s:n:")) != -1) { switch (opt) { - case 's': + case 'n': size = atoi(optarg); break; - case 'n': + case 't': loop = atoi(optarg); break; - case 'r': + case 's': seed = atoi(optarg); break; default: