Inserts a copy of the contents of src into dest at position index. index must be non-negative and no greater than the length of dest. Returns 0 if the function succeeded, or -1 if there was insufficient memory.
Inserts a copy of the len bytes stored at buf into abuf at position index. len may not be negative. index must be non-negative and no greater than the length of abuf. Returns 0 if the function succeeded, or -1 if there was insufficient memory.
Inserts a copy of the contents of astr into abuf at position index. index must be non-negative and no greater than the length of dest. Returns 0 if the function succeeded, or -1 if there was insufficient memory.
Inserts a copy of the characters referenced by chars into abuf at position index. index must be non-negative and no greater than the length of abuf. Returns 0 if the function succeeded, or -1 if there was insufficient memory.