diff options
Diffstat (limited to 'glpk-5.0/examples/tsp/misc.h')
-rw-r--r-- | glpk-5.0/examples/tsp/misc.h | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/glpk-5.0/examples/tsp/misc.h b/glpk-5.0/examples/tsp/misc.h new file mode 100644 index 0000000..0973831 --- /dev/null +++ b/glpk-5.0/examples/tsp/misc.h @@ -0,0 +1,24 @@ +/* misc.h */ + +/* Written by Andrew Makhorin <mao@gnu.org>, October 2015. */ + +#ifndef MISC_H +#define MISC_H + +#include <glpk.h> + +#define xprintf glp_printf +#define xerror glp_error +#define xassert glp_assert +#define xalloc glp_alloc +#define xfree glp_free + +int str2int(const char *str, int *val); +/* convert character string to value of int type */ + +int str2num(const char *str, double *val); +/* convert character string to value of double type */ + +#endif + +/* eof */ |