|
5.1.40 fprintf
Procedure from library standard.lib (see standard_lib).
- Syntax:
fprintf ( link_expression, string_expression [,
any_expressions] )
- Return:
- none
- Purpose:
fprintf(l,fmt,...); performs output formatting.
The second argument is a format control string. Additional
arguments may be required, depending on the content of the
control string. A series of output characters is generated as
directed by the control string; these characters are
written to the link l.
The control string fmt is simply text to be copied, except
that the string may contain conversion specifications.
Type help print; for a listing of valid conversion
specifications. As an addition to the conversions of print ,
the %n and %2 conversion specification does not
consume an additional argument, but simply generates a newline
character.
- Note:
- If one of the additional arguments is a list, then it should be
enclosed once more into a
list() command, since passing
a list as an argument flattens the list by one level.
Example:
See also:
print;
printf;
sprintf;
string.
|