示例#1
0
static void display_version(void)
{     print("GLPSOL---GLPK LP/MIP Solver, Version %s", lib_version());
      print("");
      print("Copyright (C) 2000, 01, 02, 03, 04, 05, 06, 07 Andrew Makh"
         "orin,");
      print("Department for Applied Informatics, Moscow Aviation Instit"
         "ute,");
      print("Moscow, Russia. All rights reserved. E-mail: <*****@*****.**"
         "et.ru>.");
      print("");
      print("This program is free software; you may redistribute it und"
         "er the terms of");
      print("the GNU General Public License. This program has absolutel"
         "y no warranty.");
      exit(EXIT_SUCCESS);
      /* no return */
}
示例#2
0
int main()
{
    const char* libversion = lib_version();
    printf("lib_version = %s\n", libversion);
    printf("app_version = %s\n", PRODUCT_STRING);
}