- for(opt=0;opt<argc;opt++){
- test=atoi(argv[opt]);
- if(test){
- units=test;
- if(units<0)
- units=units-1;
- }else{
- optc++;
- optv = realloc(optv, optc);
- optv[optc - 1] = (char *) malloc(strlen(argv[opt]) + 1);
- strcpy(optv[optc - 1], argv[opt]);
- }
- }
- while ((opt=getopt(optc,optv,"c:fhn:s:q:v")) >0) {