INTEGER FUNCTION GCD( P, Q ) INTEGER, INTENT( IN ) :: P, Q INTEGER FUNCTION LCM( P, Q ) INTEGER, INTENT( IN ) :: P, Q
int GCD( const int *p, const int *q ) ;
P,Q
.
For Fortran-90 declarations and interface checking:
USE M3UTILIO
#include "iodecl3.h"
if called from C.
... ... INTEGER GCD INTEGER P, Q, D ... D = GCD( P, Q ) ! Now D is the gcd of P,Q ...
... #include "iodecl3.h" ... int p, q, d ; ... d = GCD( &p, &q ) ; /* Now d is GCD of p,q */ ...
To: Models-3/EDSS I/O API: The Help Pages