Freeciv-3.2
Loading...
Searching...
No Matches
Functions | Variables
mpcmdline.c File Reference
#include "fc_cmdline.h"
#include "fciconv.h"
#include "fcintl.h"
#include "support.h"
#include "fc_cmdhelp.h"
#include "version.h"
#include "modinst.h"
#include "mpcmdline.h"

Go to the source code of this file.

Functions

int fcmp_parse_cmdline (int argc, char *argv[])
 

Variables

struct fcmp_params fcmp
 

Function Documentation

◆ fcmp_parse_cmdline()

int fcmp_parse_cmdline ( int  argc,
char argv[] 
)

Parse commandline parameters. Modified argv[] so it contains only ui-specific options afterwards. Number of those ui-specific options is returned. Currently this is implemented in a way that it never fails. Either it returns with success or exit()s. Implementation can be changed so that this returns with value -1 in case program should be shut down instead of exiting itself. Callers are prepared for such implementation. This call initialises the log system.

Definition at line 45 of file mpcmdline.c.

Referenced by main(), and main().

Variable Documentation

◆ fcmp

struct fcmp_params fcmp
extern