This repository has been archived on 2024-12-16. You can view files and clone it, but cannot push or open issues or pull requests.
CodeBlocksPortable/WATCOM/samples/goodies/mix2f.for

20 lines
353 B
Plaintext
Raw Permalink Normal View History

* MIX2F.FOR - This FORTRAN program calls a C function to
* compute the max of three numbers.
*
* Compile/Link: wfl[386] mix2f mix2c.obj /fe=mix2
*$pragma aux tmax3 "*_" parm (value)
program mix2f
integer*4 tmax3
integer*4 result
integer*4 i, j, k
i = -1
j = 12
k = 5
result = tmax3( i, j, k )
print *, 'Maximum is ', result
end