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


BUFFER buf_replace(BUFFER buf, INTEGER pos, INTEGER char)

This function replaces the character in the buffer at position pos with the character specified by the integer char. Example:

buf_replace(`[98, 111, 111], 1, 102)
=> `[102, 111, 111]

The function bufgraft() performs a similar role.


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


the Cold Dark