Re: cmd: Add skeleton ping command (try 2)
March 18, 2010
8:44 a.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
5852
Age (days ago)
5852
Last active (days ago)
0 comments
1 participants
participants (1)
-
Alexandre Julliard