Append raw bytes to the dynamic append buffer.
- Parameters
-
| ab | Target buffer |
| s | String data to append |
| len | Length of s |
Reallocates the buffer as needed and copies the requested number of bytes to the end of the buffer. The resulting buffer is not NUL-terminated; use the maintained length field ab->len.
- Postcondition
- On success,
ab->b may be reallocated and ab->len increases by the number of appended bytes.
- Note
- On allocation failure, the function returns early and leaves the buffer unchanged.
- See also
- abFree(), editorDrawRows(), editorRefreshScreen()