How to insert subroutines of c in fortran?