hi and thanks for your help
my case is a litle bit more complex
i have c function c_func(int *u, char *v, int *n)
on the fortran side i have the following overloads
subroutine f_func(iunit,v,n) where v can be an array of real, int or character*
i created an interface as follows
interface f_func
subroutine f_func_char(iunit,vc,n)bind (c,name=“c_func”)
use intrinsic :: iso_binding , only :c_int,c_char
integer(kind=c_int),intent (in), value :: iunit
character(kind=c_char) , intent(out) :: vc(*)
end subroutine f_func_char
subroutine f_func_float(iunit,vf,n) bind(c,name=“c_func”)
use intrinsic :: iso_binding , only :c_int,c_char
integer(kind=c_int),intent (in), value :: iunit
real(kind=kind(1.0)) , intent(out) ,dimension(*) :: vf
end subroutine f_func_float
…
end interface f_func
when i compile that i get an error
thanks
jac