blob: b626be68f570f77dfb581128377c032c397a120f [file] [log] [blame]
interface
subroutine cfunction(n, x) bind(c) ! Defined in c.c
use iso_c_binding
integer(kind=c_int), value :: n
real(kind=c_float), value :: x
end subroutine
end interface
print *, 'This is the Fortran program; I am going to call the C function now...'
call cfunction(1, 2.3)
end