Go to the source code of this file.
Functions/Subroutines | |
| subroutine | dcstringfprintf (unit, fmt, i, r, d, l, n, c1, c2, c3, ca) |
| Formatted output conversion to file unit. | |
| subroutine dcstringfprintf | ( | integer, intent(in), optional | unit, |
| character(*), intent(in) | fmt, | ||
| integer, dimension(:), intent(in), optional | i, | ||
| real(sp), dimension(:), intent(in), optional | r, | ||
| real(dp), dimension(:), intent(in), optional | d, | ||
| logical, dimension(:), intent(in), optional | l, | ||
| integer, dimension(:), intent(in), optional | n, | ||
| character(*), intent(in), optional | c1, | ||
| character(*), intent(in), optional | c2, | ||
| character(*), intent(in), optional | c3, | ||
| character(*), dimension(:), intent(in), optional | ca ) |
Formatted output conversion to file unit.
Format a string like C sprintf(3) and output to a file unit. Note that the implementation is quite different from C sprintf(3).
Format string and output to unit
Return a formatted string according to format string fmt to unit unit. If unit is omitted, output to standard output. Use specifiers starting with '' in fmt. Use '%' to output a literal ''. See dcstringsprintf.f90 for specifier details and examples.
| [in] | unit | Output unit number (default: standard output) |
| [in] | fmt | Format string with specifiers |
| [in] | i | Integer array data for d, o, x |
| [in] | r | Single precision real array data for r |
| [in] | d | Double precision real array data for f |
| [in] | L | Logical array data for b, y |
| [in] | n | Repeat counts for %* specifier |
| [in] | c1 | First character string for c |
| [in] | c2 | Second character string for c |
| [in] | c3 | Third character string for c |
| [in] | ca | Character array for a |
Definition at line 67 of file dcstringfprintf.f90.
References dc_types::dp, dc_types::sp, and dc_types::string.