aboutsummaryrefslogtreecommitdiff
path: root/example_packages/hello_complex_2/src/farewell_m.f90
blob: 9fc75b9c23d367934cbe4de37bae24a497bd0d45 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
module farewell_m
    implicit none
    private

    public :: make_farewell
contains
    function make_farewell(name) result(greeting)
        character(len=*), intent(in) :: name
        character(len=:), allocatable :: greeting

        greeting = "Goodbye, " // name // "!"
    end function make_farewell
end module farewell_m