Ron Shepard wrote:
> In article <1179395968.087284.110
@y80g2000hsf.googlegroups.com>,
> Arun Prasath <abaru
@hotmail.com> wrote:
> > I have a variable arg function in C which i am calling from Fortran.
> If you are concerned with portability, then I would recommend
> writing an interface function in C that takes a fixed number of
> arguments and that then calls the other variable argument C
> function. You can then call this interface function from fortran
> without so much concern about portability.
> There is a common subset of calling sequences that work between the
> languages without too much trouble, but there are a lot of things in
> fortran (e.g. assumed shape arrays, access through generic
> interfaces, module variables) that are difficult to match to C and
> there are a lot of things in C (e.g. arrays of function pointers,
> varying arguments) that are difficult to match to fortran.
> $.02 -Ron Shepard