Next: stdlib io port input output ports, Previous: stdlib io port binary output, Up: stdlib io port [Index]
Write char to the port. Return unspecified values.
start and count must be non–negative exact integer objects. string must have a length of at least start+count.
start defaults to 0. count defaults to:
(- (string-length string) start)
The put-string
procedure writes the count characters of
string starting at index start to the port. The
put-string
procedure returns unspecified values.
datum should be a datum value.
The put-datum
procedure writes an external representation of
datum to textual-output-port. The specific external
representation is implementation–dependent. However, whenever
possible, an implementation should produce a representation for which
get-datum
, when reading the representation, will return an object
equal (in the sense of equal?
) to datum.
NOTE Not all datums may allow producing an external representation for which
get-datum
will produce an object that is equal to the original. Specifically, NaNs contained in datum may make this impossible.
NOTE The
put-datum
procedure merely writes the external representation, but no trailing delimiter. Ifput-datum
is used to write several subsequent external representations to an output port, care should be taken to delimit them properly so they can be read back in by subsequent calls toget-datum
.