1 /*
2  * This file is part of MPSolve 3.2.1
3  *
4  * Copyright (C) 2001-2020, Dipartimento di Matematica "L. Tonelli", Pisa.
5  * License: http://www.gnu.org/licenses/gpl.html GPL version 3 or higher
6  *
7  * Authors:
8  *   Leonardo Robol <leonardo.robol@unipi.it>
9  */
10 
11 #include <mps/mps.h>
12 #include <string.h>
13 #include <ctype.h>
14 
15 /**
16  * @brief Return a string representation of MPSolve's version.
17  *
18  * @return A pointer to a const string containing the version number in MPSolve.
19  */
20 const char *
mps_get_version()21 mps_get_version ()
22 {
23   return PACKAGE_VERSION;
24 }
25 
26 /**
27  * @brief Return a string representation of MPSolve's major version.
28  *
29  * @return An unsigned integer with the major version.
30  */
31 unsigned int
mps_get_major_version()32 mps_get_major_version()
33 {
34   return MPS_MAJOR_VERSION;
35 }
36 
37 /**
38  * @brief Return a string representation of MPSolve's minor version.
39  *
40  * @return An unsigned integer with the minor version.
41  */
42 unsigned int
mps_get_minor_version()43 mps_get_minor_version()
44 {
45   return MPS_MINOR_VERSION;
46 }
47 
48 /**
49  * @brief Return a string representation of MPSolve's patch version.
50  *
51  * @return An unsigned integer with the patch version.
52  */
53 unsigned int
mps_get_patch_version()54 mps_get_patch_version()
55 {
56   return MPS_PATCH_VERSION;
57 }
58