| Subroutine  : |  | 
| unit      : | integer, intent(in), optional | 
| fmt      : | character(*), intent(in) | 
| i(:)      : | integer, intent(in), optional | 
| r(:)      : | real, intent(in), optional | 
| d(:)      : | real(DP), intent(in), optional | 
| L(:)      : | logical, intent(in), optional | 
| s(:)      : | type(VSTRING), intent(in), optional | 
| n(:)      : | integer, intent(in), optional | 
| c1      : | character(*), intent(in), optional | 
| c2      : | character(*), intent(in), optional | 
| c3      : | character(*), intent(in), optional | 
| ca(:)      : | character(*), intent(in), optional | 
フォーマット文字列 fmt に従って変換された文字列を 装置番号 unit
に返します。unit を省略する場合には標準出力に返します。 第2引数 fmt
には指示子を含む文字列を与えます。 指示子には「%」を用います。
% を用いたい場合は 「%%」と記述します。
指示子および用例に関しての詳細は dcstringsprintf.f90 を参照ください。
          
subroutine DCStringFPrintf(unit, fmt, i, r, d, L, s, n, c1, c2, c3, ca)
  !
  ! フォーマット文字列 fmt に従って変換された文字列を
  ! 装置番号 unit に返します。unit を省略する場合には標準出力に返します。
  ! 第2引数 fmt には指示子を含む文字列を与えます。
  ! 指示子には「<tt>%</tt>」を用います。
  ! <tt>%</tt> を用いたい場合は 「<tt>%%</tt>」と記述します。
  ! 指示子および用例に関しての詳細は dcstringsprintf.f90 を参照ください。
  !
  use dcstring_base, only: VSTRING !:nodoc:
  use dc_types, only: STRING, DP
  use dc_string, only: Printf
  implicit none
  integer, intent(in), optional:: unit
  character(*), intent(in):: fmt
  integer, intent(in), optional:: i(:), n(:)
  real, intent(in), optional:: r(:)
  real(DP), intent(in), optional:: d(:)
  logical, intent(in), optional:: L(:)
  type(VSTRING), intent(in), optional:: s(:)
  character(*), intent(in), optional:: c1, c2, c3
  character(*), intent(in), optional:: ca(:)
  character(STRING):: buf
continue
  call printf(buf, fmt, i=i, r=r, d=d, L=L, s=s, n=n, c1=c1, c2=c2, c3=c3, ca=ca)
  if (present(unit)) then
    write(unit, '(A)') trim(buf)
  else
    write(*, '(A)') trim(buf)
  endif
end subroutine