[Fortran] syntaxhighlighter_viewsource syntaxhighlighter_copycode
program test
write(*,*) itoa(9)
pause
contains
function itoa(i)
implicit none
character(16) :: itoa
integer,intent(in) :: i
write(itoa,"(I0)") i
return
end function
end
[Fortran] syntaxhighlighter_viewsource syntaxhighlighter_copycode
module test
contains
function itoa(i)
!DEC$ ATTRIBUTES STDCALL,REFERENCE,DLLEXPORT,ALIAS:"itoa"::itoa
implicit none
character(16) :: itoa
integer,intent(in) :: i
write(itoa,"(I0)") i
return
end function
end module