aboutsummaryrefslogtreecommitdiff
path: root/example_packages/hello_complex/source/greet_m.f90
blob: 38afd08352081f887fb8d99c50ccc95dda0cd54a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
module greet_m
    use subdir_constants, only: GREET_STR
    implicit none
    private

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

        greeting = GREET_STR // name // "!"
    end function make_greeting
end module greet_m