NAG Library Manual, Mark 27.2
Interfaces:  FL   CL   CPP   AD 

NAG CL Interface Introduction
Example description
/* nag_info_licence (a00acc) Example Program.
 *
 * Copyright 2021 Numerical Algorithms Group.
 *
 * Mark 27.2, 2021.
 */

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

int main(void) {
  Integer exit_status = 0;

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

  if (!nag_info_licence()) {
    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;
}