/* nag_licence_query (a00acc) Example Program.
 *
 * NAGPRODCODE Version.
 *
 * Copyright 2016 Numerical Algorithms Group.
 *
 * Mark 26, 2016.
 */

#include <nag.h>
#include <stdio.h>
#include <nag_stdlib.h>
#include <naga00.h>

int main(void)
{
  Integer exit_status = 0;

  printf("nag_licence_query (a00acc) Example Program Results\n\n");

  if (!nag_licence_query()) {
    printf(" Unable to obtain a licence for this implementation.\n");
    exit_status = 1;
    goto END;
  }
  else {
    printf(" Licence query was successful\n");
  }

END:
  return exit_status;
}