string_ Function

private pure function string_(c)

Arguments

TypeIntentOptionalAttributesName
character, intent(in) :: c

Return Value type(string)


Contents

Source Code


Source Code

   pure function string_(c)
   !< Return a string given a character input.
   !<
   !<```fortran
   !< print "(L1)", string('Hello World')//''=='Hello World'
   !<```
   !=> T <<<
   character(*), intent(in) :: c       !< Character.
   type(string)             :: string_ !< String.

   string_%raw = c
   endfunction string_