/* nag_licence_query (a00acc) Example Program * * Copyright 2005 Numerical Algorithms Group. * * Mark 8, 2005. */ #include #include #include #include #include int main(int argc, char *argv[]) { FILE *fpout; Integer exit_status = 0; NagError fail; INIT_FAIL(fail); /* Check for command-line IO options */ fpout = nag_example_file_io(argc, argv, "-results", NULL); fprintf(fpout, "nag_licence_query (a00acc) Example Program Results\n\n"); if (!nag_licence_query()) { fprintf(fpout, " Unable to obtain a licence for this implementation.\n"); exit_status = 1; goto END; } else { fprintf(fpout, " Licence query was successful\n"); } END: if (fpout != stdout) fclose(fpout); return exit_status; }