Go to the source code of this file.
Functions/Subroutines | |
| character(len=string) function | dcstringcprintf (fmt, i, r, d, l, n, c1, c2, c3, ca, maxlen) |
| Formatted output conversion (function version). | |
| character(len=token) function | dcstringcprintft (fmt, i, r, d, l, n, c1, c2, c3, ca, maxlen) |
| character(len = string) function dcstringcprintf | ( | 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, | ||
| integer, intent(in), optional | maxlen ) |
Formatted output conversion (function version).
Format a string like C sprintf(3) and return it. Note that the implementation is quite different from C sprintf(3).
Format string and return result
Return a formatted string according to format string fmt. Use specifiers starting with '' in fmt. Use '%' to output a literal ''. See dcstringsprintf.f90 for specifier details and examples.
| [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 65 of file dcstringcprintf.f90.
References dc_types::dp, dc_types::sp, and dc_types::string.
| character(len = token) function dcstringcprintft | ( | 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, | ||
| integer, intent(in), optional | maxlen ) |
Definition at line 92 of file dcstringcprintf.f90.
References dc_types::dp, dc_types::sp, dc_types::string, and dc_types::token.