Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
character(len=*), | optional | :: | chars |
function fson_string_create(chars) result(new)
character(len=*), optional :: chars
type(fson_string), pointer :: new
allocate(new)
! append chars if available
if (present(chars)) then
call append_chars(new, chars)
end if
end function fson_string_create