Mercurial > hg > Members > kono > Cerium
comparison example/word_count3/main.cc @ 625:60aa3f241b10
64bit mode worked on Mac OS X.
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Mon, 16 Nov 2009 10:59:55 +0900 |
parents | 0decff4e867b |
children |
comparison
equal
deleted
inserted
replaced
624:c7b5c99252ad | 625:60aa3f241b10 |
---|---|
275 for (int i = 1; argv[i]; ++i) { | 275 for (int i = 1; argv[i]; ++i) { |
276 if (strcmp(argv[i], "-count") == 0) { | 276 if (strcmp(argv[i], "-count") == 0) { |
277 count = atoi(argv[++i]); | 277 count = atoi(argv[++i]); |
278 } else if (strcmp(argv[i], "-file") == 0) { | 278 } else if (strcmp(argv[i], "-file") == 0) { |
279 file = argv[++i]; | 279 file = argv[++i]; |
280 } | 280 } |
281 | 281 } |
282 | 282 if (!file) { |
283 printf("usage: %s [-count 10] -file filename\n",argv[0]); | |
284 exit(0); | |
283 } | 285 } |
284 | 286 |
285 return 0; | 287 return 0; |
286 } | 288 } |
287 | 289 |