answer.f90 294 B

123456789
  1. ! Copyright 2016 The Go Authors. All rights reserved.
  2. ! Use of this source code is governed by a BSD-style
  3. ! license that can be found in the LICENSE file.
  4. function the_answer() result(j) bind(C)
  5. use iso_c_binding, only: c_int
  6. integer(c_int) :: j ! output
  7. j = 42
  8. end function the_answer