* Use getopt function
*/
opterr = 0; /* don't want writing to stderr */
- while ( (i = getopt(argc, argv, "h")) != -1) {
+ while ( (i = getopt(argc, argv, "hs:")) != -1) {
switch (i) {
/*
* Handling options
usage();
return -1;
break;
- case 's': /* take wait time for childen */
+ case 's': /* buffer size */
size = strtol(optarg, NULL, 10); /* convert input */
break;
case '?': /* unrecognized options */