コード例 #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
ファイル: main.c プロジェクト: Praqma/GradleBuildProperties
int main()
{
    const char* libversion = lib_version();
    printf("lib_version = %s\n", libversion);
    printf("app_version = %s\n", PRODUCT_STRING);
}