version
Returns information describing the version of the library, serial number, operating system, and compiler.
Synopsis
#include <imsls.h>
char *imsls_version (Imsls_keyword code)
Required Arguments
Imsls_keyword code (Input)
Index indicating which value is to be returned. It must be IMSLS_LIBRARY_VERSION, IMSLS_OS_VERSION, IMSLS_COMPILER_VERSION, or IMSLS_LICENSE_NUMBER.
Return Value
The requested value is returned. If code is out of range, then NULL is returned. Use imsls_free to release the returned string.
Description
Function imsls_version returns information describing the version of the library, the version of the operating system under which it was compiled, the compiler used, and the IMSL serial number.
Example
This example prints all the values returned by imsls_version on a particular machine. The output is omitted because the results are system dependent.
#include <imsls.h>
#include <stdio.h>
int main()
{
char *library_version, *os_version;
char *compiler_version, *license_number;
library_version = imsls_version(IMSLS_LIBRARY_VERSION);
os_version = imsls_version(IMSLS_OS_VERSION);
compiler_version = imsls_version(IMSLS_COMPILER_VERSION);
license_number = imsls_version(IMSLS_LICENSE_NUMBER);
printf("Library version = %s\n", library_version);
printf("OS version = %s\n", os_version);
printf("Compiler version = %s\n", compiler_version);
printf("Serial number = %s\n", license_number);
return 0;
}