vle-write-string


(vle-write-string  fptr   value  numChars)

writes a Lisp string to file, either using the given string length or the entire string length

Arguments

fptr  file pointer as returned by (open <filename> "rb")

value  Lisp string value to write to file

numChars  if <= 0, the entire Lisp string is written to file, and an EOS (0x0) value is written to indicate the end of string;
if > 0, exactly numChars characters are written from the string (or max. the number of characters in Lisp string), and no 0x0 EOS indicator is appended;
this allows to write strings in the 2 main storage mechanisms : using a length prefix, and using 0x0 EOS ident

Return

value, if successful, NIL otherwise



©  Bricsys NV. All rights reserved.