/* nag_licence_query (a00acc) Example Program.
 *
 * Copyright 2017 Numerical Algorithms Group.
 *
 * Mark 26.1, 2017.
 */

#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;
}