str_bol Function

private elemental function str_bol(n) result(str)

Arguments

TypeIntentOptionalAttributesName
logical, intent(in) :: n

Return Value character(len=1)


Called by

proc~~str_bol~2~~CalledByGraph proc~str_bol~2 str_bol interface~str~2 str interface~str~2->proc~str_bol~2 proc~bctoi_i8p~2 bctoi_I8P proc~bctoi_i8p~2->interface~str~2 proc~bctoi_i2p~2 bctoi_I2P proc~bctoi_i2p~2->interface~str~2 proc~bctoi_i1p~2 bctoi_I1P proc~bctoi_i1p~2->interface~str~2 proc~bctoi_i4p~2 bctoi_I4P proc~bctoi_i4p~2->interface~str~2 interface~bcton~2 bcton interface~bcton~2->proc~bctoi_i8p~2 interface~bcton~2->proc~bctoi_i2p~2 interface~bcton~2->proc~bctoi_i1p~2 interface~bcton~2->proc~bctoi_i4p~2

Contents

Source Code


Source Code

   elemental function str_bol(n) result(str)
   !< Convert logical to string.
   !<
   !<```fortran
   !< use penf
   !< print "(A)", str(n=.true.)
   !<```
   !=> T <<<
   logical, intent(in):: n   !< Logical to be converted.
   character(1)::        str !< Returned string containing input number plus padding zeros.

   write(str, '(L1)') n
   endfunction str_bol