You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

24 lines
469 B

3 months ago
  1. /* misc.h */
  2. /* Written by Andrew Makhorin <mao@gnu.org>, October 2015. */
  3. #ifndef MISC_H
  4. #define MISC_H
  5. #include <glpk.h>
  6. #define xprintf glp_printf
  7. #define xerror glp_error
  8. #define xassert glp_assert
  9. #define xalloc glp_alloc
  10. #define xfree glp_free
  11. int str2int(const char *str, int *val);
  12. /* convert character string to value of int type */
  13. int str2num(const char *str, double *val);
  14. /* convert character string to value of double type */
  15. #endif
  16. /* eof */