Re: cmd: Add skeleton ping command (try 2)
18 Mar
2010
18 Mar
'10
1:44 p.m.
Trey Hunner <treyhunner(a)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(a)winehq.org
5838
Age (days ago)
5838
Last active (days ago)
0 comments
1 participants
participants (1)
-
Alexandre Julliard