fdds_sprintf - print to a character string
SYNOPSIS
#include <fdds.h> (fixed-format sources)
#include <f90dds.h> (free-format sources)
integer function fdds_sprintf(str, fmt, ...)
-
character*(*) str
character*(*) fmt
DESCRIPTION
fdds_sprintf writes a formatted message to a string to allow
fortran codes the same capabilities as "C" codes have with "sprintf".
The message is based on the format string, fmt, and optional
arguments (see fdds_printf). The return value
is the number of characters in the output string, 'str'. See standard
man page for sprintf.
EXAMPLES
integer ier,i
character*256 filename,name
...
ier=fdds_sprintf(filename,'%s_%d\0',name,i)
SEE ALSO
fdds_openpr Open a printfile
fdds_savepr Redirect to printfile
fdds_prthdr Print header
fdds_prtmsg Print a message
fdds_prtcon Print to console
fdds_prterr Print error message
fdds_errors Query errors
fdds_info Control printing
fdds_closepr Close printfile
AUTHOR
Jerry Ehlers, BP America (May 2003)