Freeciv21
Develop your civilization from humble roots to a global empire
version.cpp
Go to the documentation of this file.
1
/*__ ___ ***************************************
2
/ \ / \ Copyright (c) 1996-2022 Freeciv21 and Freeciv
3
\_ \ / __/ contributors. This file is part of Freeciv21.
4
_\ \ / /__ Freeciv21 is free software: you can redistribute it
5
\___ \____/ __/ and/or modify it under the terms of the GNU General
6
\_ _/ Public License as published by the Free Software
7
| @ @ \_ Foundation, either version 3 of the License,
8
| or (at your option) any later version.
9
_/ /\ You should have received a copy of the GNU
10
/o) (o/\ \_ General Public License along with Freeciv21.
11
\_____/ / If not, see https://www.gnu.org/licenses/.
12
\____/ ********************************************************/
13
14
#include <fc_config.h>
15
16
#include "
version.h
"
17
18
// utility
19
#include "
fcintl.h
"
20
#include "
shared.h
"
21
#include "
support.h
"
22
23
// generated
24
#include "fc_version.h"
25
29
const
char
*
freeciv21_version
() {
return
VERSION_STRING; }
30
34
const
char
*
freeciv_name_version
()
35
{
36
static
char
msgbuf[256];
37
38
fc_snprintf
(msgbuf,
sizeof
(msgbuf),
_
(
"Freeciv21 version %s"
),
39
freeciv21_version
());
40
41
return
msgbuf;
42
}
fcintl.h
_
#define _(String)
Definition:
fcintl.h:50
shared.h
fc_snprintf
int fc_snprintf(char *str, size_t n, const char *format,...)
See also fc_utf8_snprintf_trunc(), fc_utf8_snprintf_rep().
Definition:
support.cpp:537
support.h
freeciv21_version
const char * freeciv21_version()
Returns the raw version string.
Definition:
version.cpp:29
freeciv_name_version
const char * freeciv_name_version()
Return string containing both name of Freeciv21 and version.
Definition:
version.cpp:34
version.h
utility
version.cpp
Generated by
1.9.1