cmd: Add skeleton ping command (try 2)
Alexandre Julliard
julliard at winehq.org
Thu Mar 18 08:44:27 CDT 2010
Trey Hunner <treyhunner at gmail.com> writes:
> +int main(int argc, char** argv)
> +{
> + int n = 0;
> + int optc;
> +
> + while ((optc = getopt( argc, argv, "n:w:" )) != -1)
> + {
> + switch(optc)
> + {
> + case 'n':
> + n = atoi( optarg );
> + break;
> + case '?':
> + usage();
> + exit(1);
> + }
> + }
You should at least print a FIXME for other options that it's supposed
to support, instead of silently succeeding and doing nothing.
--
Alexandre Julliard
julliard at winehq.org
More information about the wine-devel
mailing list