| <<< zur Fortran-Startseite | |
| << Fortran und C | F >> |
| < Interface | Fortran 90/95 und C > |
Ein Interface ist die Schnittstellendefinition zu einem externen Unterprogramm. Das externe Unterprogramm kann, muss aber nicht in Fortran geschrieben sein.
interface Spezifikation der externen Unterprogramme end interface |
Beispiel:
interface
! subroutine x(a, b, c) sei ein externes Unterprogramm
subroutine x(a, b, c)
real, intent(in) :: a
integer :: b, c
end subroutine x
end interface
call x(2.5, 1, 3)
| <<< zur Fortran-Startseite | |
| << Fortran und C | F >> |
| < Interface | Fortran 90/95 und C > |
This article is issued from Wikibooks. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.