gameux/tests: Add test of storing and reading game statistics.
[wine.git] / programs / ping / ping_main.c
blob70db17f48cffc6b159d517dd02cd4c1952a93d7f
1 /*
2 * ping stub
3 * Copyright (C) 2010 Trey Hunner
5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Lesser General Public
7 * License as published by the Free Software Foundation; either
8 * version 2.1 of the License, or (at your option) any later version.
10 * This library is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 * Lesser General Public License for more details.
15 * You should have received a copy of the GNU Lesser General Public
16 * License along with this library; if not, write to the Free Software
17 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
20 #include <unistd.h>
21 #include <windows.h>
23 #include "wine/debug.h"
25 WINE_DEFAULT_DEBUG_CHANNEL(ping);
27 static void usage(void)
29 WINE_MESSAGE( "Usage: ping [-n count] [-w timeout] target_name\n\n" );
30 WINE_MESSAGE( "Options:\n" );
31 WINE_MESSAGE( " -n Number of echo requests to send.\n" );
32 WINE_MESSAGE( " -w Timeout in milliseconds to wait for each reply.\n" );
35 int main(int argc, char** argv)
37 int n = 0;
38 int optc;
40 WINE_FIXME( "this command currently just sleeps based on -n parameter\n" );
42 while ((optc = getopt( argc, argv, "n:w:tal:fi:v:r:s:j:k:" )) != -1)
44 switch(optc)
46 case 'n':
47 n = atoi( optarg );
48 break;
49 case '?':
50 usage();
51 exit(1);
52 default:
53 usage();
54 WINE_FIXME( "this command currently only supports the -n parameter\n" );
55 exit(1);
59 Sleep(n * 1000);
60 return 0;