Freeciv-3.2
Loading...
Searching...
No Matches
fc_cmdline.h
Go to the documentation of this file.
1/***********************************************************************
2 Freeciv - Copyright (C) 1996 - A Kjeldberg, L Gregersen, P Unold
3 This program is free software; you can redistribute it and/or modify
4 it under the terms of the GNU General Public License as published by
5 the Free Software Foundation; either version 2, or (at your option)
6 any later version.
7
8 This program is distributed in the hope that it will be useful,
9 but WITHOUT ANY WARRANTY; without even the implied warranty of
10 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 GNU General Public License for more details.
12***********************************************************************/
13#ifndef FC__CMDLINE_H
14#define FC__CMDLINE_H
15
16#ifdef __cplusplus
17extern "C" {
18#endif /* __cplusplus */
19
20/* utility */
21#include "support.h"
22
23char *get_option_malloc(const char *option_name,
24 char **argv, int *i, int argc,
25 bool gc);
26bool is_option(const char *option_name, char *option);
27int get_tokens(const char *str, char **tokens, size_t num_tokens,
28 const char *delimiterset);
29void free_tokens(char **tokens, size_t ntokens);
30
32
33#ifdef __cplusplus
34}
35#endif /* __cplusplus */
36
37#endif /* FC__CMDLINE_H */
#define str
Definition astring.c:76
char * incite_cost
Definition comments.c:75
void free_tokens(char **tokens, size_t ntokens)
Definition fc_cmdline.c:203
int get_tokens(const char *str, char **tokens, size_t num_tokens, const char *delimiterset)
Definition fc_cmdline.c:166
bool is_option(const char *option_name, char *option)
Definition fc_cmdline.c:112
char * get_option_malloc(const char *option_name, char **argv, int *i, int argc, bool gc)
Definition fc_cmdline.c:50
void cmdline_option_values_free(void)
Definition fc_cmdline.c:97
const char * option_name(const struct option *poption)
Definition options.c:628