Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
character(len=*), | intent(in) | :: | value |
FUNCTION PluginGuestSendF(value)
LOGICAL :: PluginGuestSendF
CHARACTER(*), INTENT(in) :: value
CHARACTER(kind=c_char), DIMENSION(:), ALLOCATABLE :: cstring
INTEGER :: i
allocate(cstring(LEN_TRIM(value) + 1))
DO i = 1, LEN_TRIM(value)
cstring(i) = value(i:i)
END DO
cstring(LEN_TRIM(value) + 1) = c_null_char
PluginGuestSendF = PluginGuestSend(cstring) /= 0
DEallocate(cstring)
END FUNCTION PluginGuestSendF