Software Archive
Read-only legacy content
17061 Discussions

Function Pointers in Fortran

Deleted_U_Intel
Employee
631 Views
Does anyone know how to implement the equivalent of C function pointers in fortran? I have heard rumours of LOC() and EXTERN. I want to point to a fortran function, not a dll or external c function. Any help out there?
0 Kudos
3 Replies
Steven_L_Intel1
Employee
631 Views
Sure, if you don't mind extensions. The concept is pretty much the same as if you used a C or DLL function. Here's a quick example:

0 Kudos
rahzan
New Contributor I
631 Views
How'bout an example of function be called by its pointer ?

Tim
0 Kudos
Steven_L_Intel1
Employee
631 Views
Um, isn't that what I gave above?

Steve
0 Kudos
Reply