title: What is the equivalent type in C for REAL(KIND=real_normal) in Fortran?
body: <p>I have a problem with passing of an array from Fortran to a c function:
  In the fortran the array is defined as </p>
  
  <pre><code>REAL(KIND=real_normal) , DIMENSION(:), ALLOCATABLE :: array
  call cFunc(array)
  </code></pre>
  
  <p>If define the cFunc as</p>
  
  <pre><code>void cFunc(double *data){...}
  </code></pre>
  
  <p>Than the data  contains only "garbage" values. Where is the problem in this case? (with integers works this solution well).</p>
  
  <p>thx.
  EDIT:
  My platform:
  Compiler: VS 2008, Intel compiler 11 version
  OS: Win7</p>
  
  <p>EDIT 2:
  I define the interface for the c-function like this (the code is reduced to one element, which makes problems, real function has more parameters): </p>
  
  <pre><code>interface c_interface
  
  subroutine cFunc(array) bind (C, name = "cFunc")
  use iso_c_binding
  REAL(c_double), DIMENSION(*)::array
  end subroutine cFunc
  </code></pre>
  
  <p>The memory in the fortran is allocated with </p>
  
  <pre><code>ALLOCATE (array(numberOfElements))
  call cFunc(array)
  </code></pre>
  
  <p>At the moment i get an runtime error "Floating-point overflow". In some cases the array correct elements.</p>