> > +           case 'i':
> > +                   iterations = atoi(v);
> should be checking for a -ve value?
> > +                   break;
> >             case 'h':
> >                     usage();
> >                     exit(0);
> > @@ -167,12 +171,16 @@ int main(int argc, char *argv[])
> >     int i;
> >     setup();
> > 
> > -   rt_init("jh", parse_args, argc, argv);
> > +   rt_init("jhi:", parse_args, argc, argv);
> > +
> > +   if (iterations < 100) {
> > +           fprintf(stderr, "Iteration cannot be less than 100.\n");
> > +   }
This check will cover negative values.

-- 
Best regards,
                anton
mailto:[EMAIL PROTECTED]

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list

Reply via email to