summaryrefslogtreecommitdiff
path: root/glpk-5.0/examples/tsp/misc.h
blob: 09738315787dc8d4185436d38e8fbfee46583247 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
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 */