Returns information describing the version of the library, serial number, operating system, and compiler.
#include <imsls.h>
char *imsls_version (Imsls_keyword code)
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.
The requested value is returned. If code is out of range, then NULL is returned. Use free to release the returned string.
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.
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>
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);
}
Visual Numerics, Inc. PHONE: 713.784.3131 FAX:713.781.9260 |