binio-fputstring


Synopsis

(binio-fputstring <ostream> <str>|<list-of-str>)

Description

Writes a single string or a list of those to an open output stream, opened with (binio-fopen fn "w"), (binio-fopen fn "rw") or (binio-fopen fn "a").

The strings are terminated with \r\n (0x0A 0x0D). All escape characters or special characters are printed as they are, no special \n to \r\n conversion is done.
(binio-fputstring f "0") prints "0\r\n" to the stream.

Dependant on an external library: so far only binio.fas for ViLL or vlisp

Arguments

ostream: internal object representation of a binary file, opened for output.

str: either a single string or a list of strings

Return Value

Currently unspecified

Side Effects

Writes data to an open stream and advances the file pointer.

Module

(std-require-external 'BINIO)

Defined in BINIO