Cold Help System: Programming: ColdC Reference Manual: Functions: Buffer: strings_to_buf()


BUFFER strings_to_buf(LIST strings[, BUFFER sep])

This function builds a buffer from the strings given in the list strings. Each string represents a line which is terminated with a carriage return and a newline (ASCII 13 and 10). If the argument sep is specified, each string is terminated with it instead. Examples:

strings_to_buf(["a", "b", "c"])
=> `[97, 13, 10, 98, 13, 10, 99, 13, 10]
strings_to_buf(["a", "b", "c"], `[9])
=> `[97, 9, 98, 9, 99, 9]


buf_replace() | buf_to_str() | buf_to_strings() | bufgraft() | buflen() | str_to_buf() | strings_to_buf() | subbuf() | bufidx()


the Cold Dark