cstring Function

public function cstring(s) result(cs)

Arguments

Type IntentOptional Attributes Name
character(len=*), intent(in) :: s

Return Value character(kind=c_char, len=:), allocatable


Called by

proc~~cstring~~CalledByGraph proc~cstring cstring proc~read_xml read_xml proc~read_xml->proc~cstring proc~test_cstring test_cstring proc~test_cstring->proc~cstring proc~test_read_xml_nopath test_read_xml_nopath proc~test_read_xml_nopath->proc~read_xml

Source Code

   function cstring(s) result(cs)
      character(len=*), intent(in) :: s
      character(kind=c_char, len=:), allocatable :: cs

      cs = adjustl(trim(s)) // c_null_char

   end function cstring