Freeciv-3.2: /fast/freeciv/nightly/S3_2/tools/fcmp/mpcmdline.h File Reference

Freeciv-3.2

Loading...
Searching...
No Matches
Functions
mpcmdline.h File Reference

Go to the source code of this file.

## Functions

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

## 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().