HP MLIB User's Guide Vol. 2 7th Ed.

1090 HP MLIB User’s Guide
Examples
The ANSI C function prototypes also enforce the additional int arguments
at the end of the argument list corresponding to the character arguments.
Note the two char* arguments at the beginning of the argument list in the
function prototype for DGEMM and the two int arguments at the end, which
must tell the lengths of the character strings transa and transb.
The typedef statements that were given to define the two data types,
complex8_t and complex16_t, are included in the header file and used
throughout wherever COMPLEX*8 or COMPLEX*16 variables or arrays are
required.
If you are compiling with the cc(1) compiler option Ac, the ANSI C
prototypes are replaced by Kernighan-and-Ritchie-style declarations. For
example, the prototype described above for DGEMM is replaced with
extern void dgemm ();
Examples
Calling subroutines
This section gives an example of calling VECLIB subprograms to solve a system
of linear equations. This example first presents a Fortran code segment, then a
corresponding C code segment. The generation of the matrix and
right-hand-side values is omitted from both examples.
The problem is to solve a system of linear equations Ax = b, where A is a 6-by-6
matrix stored in a double (equivalent to type REAL*8 in Fortran) array whose
dimensions are 10 by 10, and b is a vector 6 elements long stored in a double
array of dimension 10.